barbiepylon
barbiepylon

Reputation: 911

How can I package up software to build ec2 instances from without using AMI?

My company builds "certified" AMIs for us to use. I want to create an EC2 instance from that and install some software and then package that back up to be able to create EC2 instances from this new package.

Ideally, this new package would be AMI from the EC2 instance that I installed the software on, but this isn't an option for me.

Is there another way to achieve something similar? I'm just trying to avoid having to install the same software on every EC2 instance I create.

Thanks!

Upvotes: 0

Views: 706

Answers (1)

Matt Houser
Matt Houser

Reputation: 36073

An AMI image is the only way to "package up" what you have already installed. If you cannot create and use your own custom AMI images, then you must use a sanctioned AMI image, and install what you need on top of that.

However, you can automate that process so you don't have to sign-in to the EC2 instance and install the software manually. You have a few options:

  1. Put all your apt-get install items in your EC2 instances user data as an init script. See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
  2. Use a configuration management tool such as Puppet, Chef, Ansible to configure your EC2 instances after they are launched.

Upvotes: 1

Related Questions