Setup Ansible server to manage several AWS Accounts using dynamic inventory?

43 views
Skip to first unread message

chall...@gmail.com

unread,
Jan 4, 2017, 1:51:27 PM1/4/17
to Ansible Project
How do i setup Ansible server to manage multiple Aws accounts using dynamic inventory, 
so, i have 20 Aws accounts and want to manage all those from single server (VPC's in all accounts are peered with each other),
So i have Installed Ansible and setup boto profile one for each account, by creating 20 profiles (i.e. 20 access and secret access keys)  stored in boto credentials: ~/.aws/credentials.
Is it the right way to manage multiple accounts 
i am using AWS_PROFILE to specify boto profile while running playbooks.

Alexey Vazhnov

unread,
Jan 11, 2017, 1:48:28 AM1/11/17
to Ansible Project
Looks good.
I don't have much experience with multiple AWS accounts. I think you can create 20 directories for independent inventory, for example: 'inventory/acc01/', 'inventory/acc02/', e.t.c. Then copy dynamic inventory script into this directories. And you can create static inventory files in this directories.
Reply all
Reply to author
Forward
0 new messages