I have an EC2 instance running on AWS. It is running my application let's say Version1. I added my instance to ASG. After some days, I updated my Application to Version2. But now whenever my instance is terminated, the new instance is launched with Version1 of my application (as it is using old launch configuration). How can I get the latest version of my application when Auto Scaling Group launches new instance??
Launch Configuration Details
ASG Details
Based on the comments
actions menu for launch template and modify version
.docs of launch template.whenever my instance is terminated, the new instance is launched with Version1 of my application
Yes whenever a new instance is launched it is using the old configuration of template. so modify your launch template version.
my suggestions would be :- when you update your application create a ami of update application on that instance. and then update that ami in the new version of your template so your instance will be launched according to new ami, thus updated application