Day 17 - AWS Elastic Beanstalk Blue Green Deployment with Terraform
Today I worked on Blue Green Deployment using AWS Elastic Beanstalk and Terraform. The main goal was to understand how to release a new version of an application without taking production down. In Azure App Service, this is commonly done using deployment slots. In AWS Elastic Beanstalk, the same idea can be implemented by running two separate environments and swapping their environment URLs. What I Built In this project, I created two Elastic Beanstalk environments. The Blue environment represents production and runs application version 1.0. The Green environment represents staging and runs application version 2.0. Both environments are created using Terraform. Each environment has its own Elastic Beanstalk setup with load balancing, auto scaling, health checks, and application version deployment. Architecture Why Blue Green Deployment Matters In a normal deployment, we update the existing application in place. If something goes wrong during the deployment, users may see downtime or er...