Serverless Developer Guide
deploy functions, invoke and test, update and package, and monitor the logs and troubleshoot 
errors.
Programming Model
• Event plus Context and Environment variables (ENV) are inputs to a Handler function
• ENV variables
• Runtime environment
Create & Deploy
• Management Console
• Infrastructure as Code (IaC) - AWS CloudFormation (CFN), AWS SAM (SAM), AWS Cloud 
Development Kit (AWS CDK)
• Deploy .zip ﬁle archives — when you need additional libraries, or compiled languages.
• Versions - by publishing a version of your function, you can store your code and conﬁguration as 
separate stable resources
Invoke/Test
• Synchronous invocation
• Testing locally and in the cloud with the help of AWS SAM templates and AWS SAM CLI
Update / Package
• Updating code and dependencies
• Packaging with the help of AWS SAM templates and AWS SAM CLI
Monitor
• Logs in CloudWatch
• Errors and tracing in X-Ray
• Metrics
Secure
• Execution role
Fundamentals 50