- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Release and Roll Back an AWS Cloud-Native Workload
Practice the full release-and-rollback loop for a cloud-native workload. You'll release a new version of a serverless order-processing service through AWS CodeDeploy using a canary deployment, validate the release's health from CodeDeploy and AWS Lambda evidence, roll the release back when the new version fails validation, and verify the service has recovered—capturing the release outcome as your record. You'll work from the AWS Console and an EC2 Linux VM with the AWS CLI. When you finish, you'll know how to release a workload through a canary, read deployment and workload evidence to decide whether a release is healthy, and roll back safely to a known-good version.
Lab Info
Table of Contents
-
Challenge
Prepare the serverless workload and release inputs
Prepare the healthy release baseline and the inputs for the next deployment:
- Verify that the
prodalias serves version 1 and the workload alarm isOK - Inspect the CodeDeploy canary target and request-triggered rollback configuration
- Verify that the
-
Challenge
Release the new version with a CodeDeploy canary
Start a controlled canary release and confirm that traffic has begun shifting:
- Create the CodeDeploy deployment from the supplied AppSpec
- Generate live validation traffic from the workstation
- Confirm that
prodroutes approximately 10 percent of requests to version 2
-
Challenge
Validate release health from deployment and workload evidence
Evaluate whether the canary meets the release criteria by correlating deployment and workload evidence:
- Compare CodeDeploy traffic-shift status with the direct version 2 failure
- Inspect sampled canary failures and the independent CloudWatch alarm
- Decide whether the release should continue
-
Challenge
Roll back the failed release
Stop the unhealthy canary and restore the known-good release:
- Trigger CodeDeploy's stop-and-rollback action
- Confirm that the original deployment is
Stopped - Confirm that the linked rollback deployment is
Succeeded
-
Challenge
Verify recovery and capture the release outcome
Prove that the workload recovered and preserve the evidence-backed outcome:
- Confirm that
prodserves version 1 with no additional routing weight - Verify healthy traffic and the CloudWatch alarm returning to
OK - Record the linked deployment and recovery evidence in the outcome file
- Confirm that
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.