Last active
June 21, 2017 10:54
-
-
Save alfonso-cabrera/69de53ca2210261fa743b158ae9e9cb9 to your computer and use it in GitHub Desktop.
lambda
This file contains 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
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