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.
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.