Test The Blue-Green Deployment
Now it’s all done, you can invoke your API, and you can see the responses come from two different lambda versions at various invocations, depending on the weightage you’ve given.
By following the above-mentioned processes we can achieve the blue-green deployment by using AWS Lambada.
Blue/Green Deployment in AWS Lambda
Blue Green Deployment is just like we deploy two versions of our application, one is the stable version, and another is a new feature or bug fix let’s say, forwarding a certain percentage of traffic to the second version as well in production to ensure that everything is working fine.
The Blue environment represents the currently active version of the Lambda function. In contrast, the Green environment is a 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. With Blue Green deployment we can test our application with real-time users, without replacing the production workload completely.