Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

on EC2 my app servers are running the same EBS AMI. How can I update this AMI's snapshot to contain the latest configuration settings and site code?

I can only find tutorials that talk about creating new EBS AMIs, none that talk about updating running AMIs.

share|improve this question

migrated from stackoverflow.com Nov 27 '12 at 14:38

This question came from our site for professional and enthusiast programmers.

    
This is probably a better question for serverfault –  digitaljoel Nov 26 '12 at 23:18

2 Answers 2

I believe your only option is to create a new AMI from one of your configured instances. Then you will have to spin up new instances based on that AMI and remove the ones on the old AMI.

share|improve this answer
    
Do you know of a tutorial on how to do this from the web console? These are EBS AMIs, do I clone the AMI? etc? thx –  AnApprentice Nov 28 '12 at 0:54

An AMI image is an image of an EC2 instance at a given point in time, like a photograph. When you launch an EC2 instance from an AMI, the AMI is not considered running. The AMI is copied to your EC2 instance and your EC2 instance is running. The original AMI image is not affected (and cannot be affected) by any changes done to your EC2 instance.

If you make changes to your EC2 instance and you want to preserve them in an AMI, you must create a new AMI image. When you do this, you can delete the old AMI image if you don't need it anymore, or keep it around if you are going to want to launch new EC2 instances from before you made your configuration changes.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.