Welcome to the final stage of the CI workflow - the Continuous Deployment.
We are now ready to take the AMI we produced during the Continuous Delivery step and deploy that to production.
For this process, we are going to use blue/green deployment approach. Our production environment is going to consist of ELB and two Auto scaling Groups (blue and green):
If we assume that the blue group holds our current production nodes, then upon deployment, we do the following: