Last active
January 31, 2023 16:21
-
-
Save srcecde/12b05c7da2ce02489a17e2dd36d154f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
def lambda_handler(event, context): | |
region_name = os.environ['AWS_REGION'] | |
if event: | |
for record in event['Records']: | |
body = record['body'] | |
# process message | |
return { | |
'statusCode': 200, | |
'body': json.dumps('Message processed successfully!') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment