I've seen 2 ways to approach this, using boto's builtin profiles to
manage multiple accounts or create multiple instances of ec2.py and
ec2.ini for each account and then use -i to point at individual ones
or keep them in a directory and point at that with ansible.cfg

On Thu, Aug 13, 2015 at 11:03 AM, Martin <[email protected]> wrote:
> I don't have input on the actual question but I'm interested to hear why one
> would have multiple AWS account for a given domain (as in responsibility
> domain, not in DNS domain).
>
> It seems to me that a single domain can be managed by using single account.
> Combining the accounts into a single ansible managed thing defeats the whole
> purpose of separating stuff. So the conclusion would be to either have a
> single account or mutliple ansible "things" that each manage their own
> responsibility domain. Then again I don't know the whole picture and my POV
> is probably very naive.
>
> /Martin
>
> On Thu, Aug 13, 2015 at 4:36 PM datsun80 <[email protected]>
> wrote:
>>
>> Nobody?
>>
>> On Wednesday, August 12, 2015 at 11:03:57 AM UTC-5, datsun80 wrote:
>>>
>>> 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/b553cba4-ee45-4a1a-ae8f-55f32d866c67%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> http://www.xing.com/profile/Martin_Marcher
> http://www.linkedin.com/in/martinmarcher
> Mobil: +43 / 660 / 62 45 103
> UID: ATU68801424
>
> --
> 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/CAK1mKEQbCvA21vXzRieL6JUZSzd98gxnDWKoE1BoyXF3zzutHw%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8mtS7JSdjHrqk%3DBDNHawpFZgvxGmsPbYp-hMeYDNAW9UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to