Created
June 28, 2018 07:42
-
-
Save adhorn/dd4942d77fe315d8509d48ca85eef2d9 to your computer and use it in GitHub Desktop.
Lambda Function to check SQS Trigger
This file contains hidden or 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 | |
def lambda_handler(event, context): | |
body = { | |
"message": "Hello SQS", | |
"event": event | |
} | |
print json.dumps(body) | |
response = { | |
"statusCode": 200, | |
"body": json.dumps(body) | |
} | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment