Skip to main content

Implementing Traffic Shifting Using SAM and CodeDeploy

Hands-On Lab


Photo of

Training Architect





Lambda and CodeDeploy make it possible to automatically shift incoming traffic between two function versions based on a preconfigured rollout strategy. This feature allows you to gradually shift traffic to a new function. If there are any issues with the new code, you can quickly rollback and control the impact to your application. Traffic shifting is built right into the AWS Serverless Application Model (SAM), making it easy to define and deploy your traffic shifting capabilities.

In this hands-on lab, you will learn how to use SAM and CodeDeploy to accomplish an automated rollout strategy for safe Lambda deployments.

Lab Prerequisites

  • Understand how to log in to and use the AWS Management Console.
  • Understand how to use the AWS Command Line Interface (CLI).
  • Understand how to use ssh from the command line.
What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.