Upgrading the software in an AMI without creating a new one

0 votes
Is there any way to unpack the AMI, upgrade the application in it and pack it back? This is for testing a temporary fix in the application. I don’t want to create an EC2 instance for the sake of modifying the application in the AMI.
Aug 6, 2019 in AWS by Greg
63 views

1 answer to this question.

0 votes

When an EC2 instance is launched, AWS allows us to pass the user data as mentioned in the AWS Documentation here. This can be a script which gets executed when the EC2 instance starts. The script can be used to install or upgrade the application. This is the recommended approach for a temporary fix testing. If a lot of EC2s have to be created with the new application, instead of using the user data approach, it’s always better to create a new AMI with the new application.

answered Aug 13, 2019 by Praveen
• 700 points

Related Questions In AWS

0 votes
1 answer

Creating A New MySQL User In Amazon RDS Environment

AWS RDS security groups documentation (a common ...READ MORE

answered Jul 18, 2018 in AWS by Priyaj
• 57,530 points
743 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer