Skip to content

Instantly share code, notes, and snippets.

@awssimplified
Created May 16, 2020 20:39
Show Gist options
  • Save awssimplified/1354e7e9ce564f58a4b1503e8dc00cc4 to your computer and use it in GitHub Desktop.
Save awssimplified/1354e7e9ce564f58a4b1503e8dc00cc4 to your computer and use it in GitHub Desktop.
import boto3
import json
def respond(res):
return {
'statusCode': '200',
'body': json.dumps(res),
'headers': {
'Content-Type': 'application/json',
},
}
def lambda_handler(event, context):
body = event['body']
personId = json.loads(body)['personId']
return respond(personId)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment