Answer the question
In order to leave comments, you need to log in
How do I update a custom AMI when upgrading an EC2 instance?
Hello!
The following question arose: I
deploy a service in EC2 with horizontal scaling. For scaling, Launch Configuration + Auto-Scaling Group is used. I pre-configured the entire environment on the virtual machine and took an image (AMI) from it.
Thus, when it becomes necessary to launch a new instance, this very image is taken and a new system is created from it.
Let's say everyone is running, spinning in production, scaling perfectly and working. But now there was a need to update the code base, which is located on the server. We will update the current instances, but subsequent new ones will be created all from the same AMI, which is now obsolete. Please tell me if Amazon has any built-in tools for updating the corresponding AMI after performing some actions on virtual machines. Or maybe someone solves this problem without using Amazon tools?
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
You make a new Ami and make a scaleability group from it
And this is how usually in Ami, when you start up, fresh code is always pulled from the repository so as not to fool around with updating Ami
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question