Deploy a Lambda Using AWS CodeDeploy and the Serverless Application Model
In this lab, you’ll practice deploying a Lambda function using AWS SAM (Serverless Application Model) and CodeDeploy. When you’re finished with this lab, you’ll have a good understanding of using CodeDeploy to deploy Lambda deployment gradually using canary.
Terms and conditions apply.
Create and Deploy a Lambda Function Using SAM
You’ll learn to define the Lambda function resources in the SAM template and deploy it into your AWS account.
Update the Lambda Function and Add Deployment Preference
You’ll update the Lambda function code to return different discount codes based on quantity. You will also learn to use the deployment preferences type to enable gradual linear deployment.
Create Hooks to Run Sanity Checks Before and After Deployment
You’ll learn to create PreTraffic and PostTraffic hooks to run sanity checks on the Lambda function before and after CodeDeploy deploys the function.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
- Basic understanding of AWS Lambda