Skip to content

Commit

Permalink
chore: change aws lambda files structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ReznikovRoman committed Aug 2, 2024
1 parent 454add7 commit 686a092
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Empty file.
1 change: 1 addition & 0 deletions src/notifications/aws/lambdas/health/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HEALTH = 1
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from aws_lambda_powertools import Logger
from aws_lambda_powertools.utilities.typing import LambdaContext

from .constants import HEALTH

def lambda_handler(event: dict, context: LambdaContext) -> dict:
logger = Logger()


def health_handler(event: dict, context: LambdaContext) -> dict:
logger.info("Debug health %s", HEALTH)
message = "Hello {} {}!".format(event.get("first_name", "John"), event.get("last_name", "Doe"))
return {
"message": message,
Expand Down

0 comments on commit 686a092

Please sign in to comment.