I am looking for ways that others have organized their inventory files when they have multiple aws accounts.
Little background, today we have one folder with all inventory files in it. The inventory directory is a mix between static and a dynamic inventory files. I am tagging the ec2 instances so I can call a playbook specifying hosts, stage_website or prod_website for example. We are switching moving all of our separate instances to their own AWS accounts however and this is where I need to find an elegant way to model this. I will have one AWS account for dev, qa, stage, and production. I would like to use the dynamic inventory approach as that supports auto scaling nicely. I looked up using profiles in boto config but it doesn't look like the ec2.py file supports it. I did find this: https://github.com/jjneely/ansible/tree/multiple-aws-accounts/plugins/inventory which someone rewrote to support multiple aws accounts which I can use but I wanted to get input on how others have done this before I do. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/da6f3c0d-774d-4845-96bf-2a6906c44ebf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
