duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.9k stars 797 forks source link

Approaching larger installations - tips/tricks/best practices? #934

Open Viss opened 1 year ago

Viss commented 1 year ago

Occasionally we'll run into an environment that's structured with one main account, and a series (several dozen in some cases) sub-accounts. Doing each one by hand is incredibly tedious, and if the customer hasnt configured the ListAccounts permission, then the discover-organization-account command doesn't work.

Is there a technique or best practice for programatically stepping through all of the accounts in ~/.aws/credentials, and doing an exhaustive discovery and mapping of them?

One of the things we're trying to solve for is "can vpcs in other accounts or regions talk to other vpcs in different accounts or regions".

Thanks in advance!