#Blue/Green Deployment steps#
- Modify the index.html and commit the changes
- Push the changes to the main branch
- In the Actions tab on the left side we can see Deploy to Amazon ECS click on that
- We can see Jobs Deploy
- Click on Deploy and we can see the status of the job.
- When the job is running we can also verify in the AWS console ECS Clusters Select the Cluster we are deploying on Select Service Name
- While the deployment is in process when your desired tasks count is 2, we can see in the tasks there will be 4 running.
- Two tasks are newly created and two are old tasks. Once the new tasks are up and running then it will bring down the old tasks.
- The image will be pushed to ECR defined in the yaml file
- We can also verify our image in the ECR repositories with updated date and time.
- We can also verify the same deployment process in the targets of ALB.
- If we select targets in the initial stage of deployment we will be seeing 2 new targets are getting registered.
- After the new targets are healthy, we will be seeing old targets will be getting de-registered.
- Finally to see the updated changes we can browse the load balancer DNS name : planA-load-balancer-planA-1850568077.us-east-1.elb.amazonaws.com