Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not even sure how to properly phrase this question, so please bear with me as I'm new with EC2 lingo/terminology. What I want to be able to do, is configure a template, if you must, and that templates will include say a LAMP stack that I work with consistently, and has all of the configs in place. All I would need to do is go in and change IPs around. How is this done in the world of EC2? Is it possible to create a template from an existing instance? Does it require firing up a new instance and still depending on tools such as Puppet/Chef/CFEngine to configure the instance once it's online? What if I'm running a cluster of web servers and want to fire one up on demand to alleviate load from the cluster. What's the fastest way to have that node up and running in the world of EC2?

share|improve this question
up vote 2 down vote accepted

Yes, this can be done, you can use the ec2-bundle-image command to create an AMI from an existing configured AMI. There are instructions on how to do this on the amazon web services website

share|improve this answer

If it's an EBS store instance (not instance store) you can easily create an image using the ec2 management console. The image can then be used to create new instances.

share|improve this answer

There are two ways to go about this

  • do it yourself (have either premade templates for each role or run a small 'naked' image that will use some configuration management and become a functional instance from your point of view)
  • use pros that do it - scalarium or rightscale

for do it yourself there are different ways to it but in essence you would need bundle into a image a bootstrap script that will set the connection to your cfengine server or have all the possible 'recipes' already bundle (hard to maintain), then run cfagent.

how you manage cfengine it can be as simple - if a file is into a location then cfagent will do some actions (install a web server, configure it etc.). one of the problems with cfengine is the key distribution for authorization but it can be very well scripted.

a different path is to have for each role into the infrastructure a pre made image that contains all the software it needs.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.