Mulitple EC2 Provisioning - Do All or Do One and Make AMI?

65 views
Skip to first unread message

Shih Oon Liong

unread,
Sep 8, 2014, 7:00:09 AM9/8/14
to ansible...@googlegroups.com
I was wondering what is everyone's experience with provisioning multiple EC2 instances with Ansible. I am contemplating between two methods.

Example I want to provision 10 instances. Should I
  • provisioning 10 EC2 instances, then set them up all 10 via Ansible at once. I know we can speed this up just by increasing the number of parallel job in the ansible playbook
  • OR provision 1 EC2 instance, then up that one master with Ansible. Then make an AMI copy of that EC2 instance, and then launch 9 more with that AMI instead.

Michael DeHaan

unread,
Sep 8, 2014, 5:35:16 PM9/8/14
to ansible...@googlegroups.com
Ultimately it depends how different they are from each other.

Each can be good approaches.  

If you are wanting to build an image with Ansible, ec2_ami (Ansible's module), Packer, or aminator could be useful options to look into.

A lot of folks have a base image and then will have ansible configure it the rest of the way and make sure configurations are up to date -- though I always do like live configuration, because it seems useful to have the latest security updates and such.



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e56b7f94-c338-4bef-8ba1-256ce22981aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages