Skip to content

Instantly share code, notes, and snippets.

@mgla
Last active June 22, 2018 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgla/70fbdc70b910a52313cfcef2ccab07fd to your computer and use it in GitHub Desktop.
Save mgla/70fbdc70b910a52313cfcef2ccab07fd to your computer and use it in GitHub Desktop.
# minimal example for lambda debugging with API GW
from pprint import pformat
def lambda_handler(event, context):
return {
'statusCode': '200',
'body': pformat(event),
'headers': {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*'
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment