Skip to content

Instantly share code, notes, and snippets.

@alfonso-cabrera
Last active June 21, 2017 10:54
Show Gist options
  • Save alfonso-cabrera/69de53ca2210261fa743b158ae9e9cb9 to your computer and use it in GitHub Desktop.
Save alfonso-cabrera/69de53ca2210261fa743b158ae9e9cb9 to your computer and use it in GitHub Desktop.
lambda
print('Starting function!')
def my_handler(event, context):
print("Log group name:", context.log_group_name)
print("Request ID:", context.aws_request_id)
print("Mem. limits(MB):", context.memory_limit_in_mb)
print("Time remaining (MS):", context.get_remaining_time_in_millis())
message = 'Hello {} {}!'.format(event['first_name'],
event['last_name'])
 return {
'message' : message
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment