Blue Green Deployment with Lambda
Deployment strategy that involves maintaining two identical environments, the Blue environment and the Green environment.
Overview
The Blue environment represents the currently active version of the Lambda function, while the Green environment is a kind of development version of code where new changes are deployed and tested.
Once the changes in the Green environment are verified, green deployment will be promoted to Blue, enabling seamless and zero-downtime deployments.
Approach
Create an Alias to Maintain Blue-green Deployments
Update Function Code
Publish a new version
Point alias to the new version (Green), weighted at some X% (Blue version at (100-X)% of traffic)
Verify that the new version is healthy
Optionally we can implement automatic promotion of green to blue
Last updated