Skip to content

Does any kind of change to an EC2 auto-scaling group require a new AMI? #72

Discussion options

You must be logged in to vote

If you want to avoid building a new AMI for code rollouts, then the best method is to bake the app installation and boot process into the user-data boot script. For example, you can have a pipeline that publishes your app artifacts to an artifactory (or S3 if you don't have one), and then in the user-data script of the instance it can download the artifact and start the app as the instances are booted up. When you need to do a deployment, you can update the launch configuration with the new user data script, which should be significantly faster than updating the AMI.

In this way, the AMI only contains the core baseline for the service (e.g., security baselines like fail2ban), which should…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rhoboat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment