Tutorial: Deploy an updated Lambda function with CodeDeploy and the AWS Serverless Application Model (original) (raw)
AWS SAM is an open-source framework for building serverless applications. It transforms and expands YAML syntax in a AWS SAM template into AWS CloudFormation syntax to build serverless applications, such as a Lambda function. For more information, see What is the AWS Serverless Application Model?
In this tutorial, you use AWS SAM to create a solution that does the following:
- Creates your Lambda function.
- Creates your CodeDeploy application and deployment group.
- Creates two Lambda functions that execute deployment validation tests during CodeDeploy lifecycle hooks.
- Detects when your Lambda function is updated. The updating of the Lambda function triggers a deployment by CodeDeploy that incrementally shifts production traffic from the original version of your Lambda function to the updated version.
Topics
- Prerequisites
- Step 1: Set up your infrastructure
- Step 2: Update the Lambda function
- Step 3: Deploy the updated Lambda function
- Step 4: View your deployment results
- Step 5: Clean up
Step 7: Clean up
Prerequisites
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.