Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A lambda that runs code on import, as well as when the handler is called.
# Make a calculation taking up some run time
print 'Beginning'
for i in xrange(100000000):
x = i * i
print 'Done'
def hello(event, context):
"""
Returns Success
"""
return 'Success'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.