> It also promotes running a single instance - which may be fine for R&D, but far from best practices for a production environment. In production, you would be using autoscaling groups
across multiple
> availability zones, specific security groups, cost allocation tagging, cloudwatch alarms going to SNS, etc. All of these have�dependencies�between each other, but act as a single
stack. That stack
> then needs to be easily brought up in different regions, and even different AWS accounts. This should not be part of ansible.
Except I wasn't targetting the ec2 module for ec2 use but for eucalyptus
and openstack use.
Right, it is not an EC2 specific module, but it happens to be called "ec2". Future users are going to see this as the "ansible way for using EC2", instead of simply a wrapper around a Eucalyptus
script.
1. I originally called it ec2_create - I was asked to change the name. However it does startup and return info about ec2/euca/openstack instances and it works for a simple, yet broad, set of cases.
2. the nicest thing is you get back a set of instance ids which is important in that you can use that with all the rest of the euca or ec2 tools.
3. And if you combine this module with the ec2 inventory script you end up with a way from ansible to interact with EC2.
�
You are right - modules are great. I never suggested doing this is 1 module, that is�ludicrous. I do however believe that a separate project with many AWS modules is the best approach. Ever better,
is if that project does as much as possible using the same thinking and techniques as Ansible.
I don't. I think ansible needs a way to create cloud instances - be they in ec2, euca, cloudstack, openstack or whatever else is out there. I could certainly see an ansible nova module to talk to openstack/rackspace, too. Here's the thing - the yum module, the apt module, the postgres module, the user/group module, the virt module - they don't handle every possible feature of all of those programs - but they do handle the important/significant cases and give lots of room if someone wants to add onto them.
I don't think that's unreasonable at all and I really do not understand why it seems like you think it is unreasonable.
-sv