Skip to content

Instantly share code, notes, and snippets.

@adhorn
Created June 28, 2018 07:42
Show Gist options
  • Save adhorn/dd4942d77fe315d8509d48ca85eef2d9 to your computer and use it in GitHub Desktop.
Save adhorn/dd4942d77fe315d8509d48ca85eef2d9 to your computer and use it in GitHub Desktop.
Lambda Function to check SQS Trigger
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