AWS AutoScaling

How we are going to upgrade the application version on production without downtime if our application deployed on EC2 with AUTOSCALING GROUP

This is a large topic and can’t really be answered here.

You won’t achieve what you want with one ASG serving the application.

You need two parallel copies of the infrastructure - one with the current version and one with the new version - both of these being a set of instances on their own ASG.

Then using load balancers and routing, gradually route traffic from old version to new. When 100% of traffic is on new version and no issues, delete old infra and build it again with the next version.

You will need to go and research how to do blue/green and canary deployment on AWS, as this is what the technique is - and how you actually implement it is a decision to be made with your infrastructure and application architects.

1 Like

Thankyou for your answer