5 ms·
Out of curiosity, how do people currently build a custom new EC2 image? Spin up a base instance and then run a script?
by eli 16y ago
Out of curiosity, how do people currently build a custom new EC2 image? Spin up a base instance and then run a script?
- jolan 16y agoIf you're using Ubuntu, they have a tool for creating new EC2 images called python-vm-builder-ec2.
- troels 16y agoThere's in fact a whole command line suite, which you can script anything through.
- ollysb 16y agoWe start with a base image and then use puppet to manage anything that needs to be installed/setup.
- cowmixtoo 16y agoI don't understand why more people don't use bcfg2. Its awesome for this purpose (and I think better than puppet or chef.)
- nodata 16y agoThen educate people! Don't just say it's better, say why!
- e1ven 16y agoI did a midrange deployment with bcfg2 (~250 machines), and what I found is that it was slow to use. Firing off a bcfg2 push would take almost 20 minutes, which was pretty unusable; The big problem was that it didn't handle large numbers of connections simultaneously well, so I ended up having to stagger them. CFengine was able to do the same push in < 30 seconds. Win. I'll be looking at Chef again in the near future. It's got a LOT of nice features; Hopefully we can make it scale out quickly.
- th0ma5 16y agoyes, that is what i've done, or rather just log in, set things up, and then save a snapshot, repeat as needed. not sure this will speed things up in general as far as iterations, but may save the $0.10 you may spend setting up a workable vm.
- singlow 16y agoI use a custom AMI. I started with a base image a long time ago. Since then I have been upgrading and tweaking. There are several tutorials on creating the image. API tools are available for the whole process if you are on an instance-store image. It creates an image of the instance filesystem in /mnt and then breaks it into chunks to upload to s3 with a manifest and registers the manifest as a new private ami.
- jwinter 16y agoKnife and Chef: http://www.opscode.com/chef http://www.opscode.com/chef