A developer is updating a serverless application where traffic is routed to an AWS Lambda function. The developer needs to update the function version using AWS CodeDeploy so that of the traffic is routed to the new version for a -minute trial period, after which all remaining traffic is routed to the new version. Which AWS CodeDeploy deployment configuration meets this requirement?
- CodeDeployDefault.LambdaCanary10Percent10MinutesAnswer
- BCodeDeployDefault.LambdaLinear10PercentEvery10Minutes
- CCodeDeployDefault.LambdaAllAtOnce
- DCodeDeployDefault.LambdaLinear10PercentEvery1Minute
Answer
CodeDeployDefault.LambdaCanary10Percent10Minutes
The configuration CodeDeployDefault.LambdaCanary10Percent10Minutes shifts of the traffic to the new Lambda version immediately, waits for a -minute interval to monitor for errors or alarms, and then shifts the remaining of the traffic to the new version.
Step-by-Step Solution
Key Concept
AWS CodeDeploy configurations for AWS Lambda support Canary deployments (shifting a percentage of traffic for a set time before shifting the rest) and Linear deployments (shifting equal increments of traffic at regular intervals).