This document discusses running Python code on AWS Lambda. It provides an overview of Lambda's event-driven architecture and how it allows Python code to be executed in response to events. It also covers how the Python runtime is pre-installed on Lambda and how the Lambda execution context provides metadata about the execution environment. Examples are given of creating Lambda functions from the console and using the context object to access execution details.
31. New Python lambda function from blueprint
• Lambda console
• Asynchronous – triggered by S3 event
• Debug & logs in Cloudwatch
• Identity and Access Management
• Exceptions handling
32. New Python ‘Hello World’ Lambda function
• Unit tests in Lambda console
• Synchronous – called by us
33. • Request ID (useful for troubleshooting)
• Time remaining (before ‘timed out’ function is killed)
• Memory available
• Info on calling client i.e Mobile app
• etc