A thin wrapper around AWS CLI that enables running AWS CLI commands on multiple AWS accounts.
Option | Description |
---|---|
accounts |
Comma-delimited list of AWS accounts |
cross-account-role-name |
Name of cross-account IAM role used to access AWS accounts |
config |
Path to aws bulk-cli config file. |
region |
AWS region to run aws bulk-cli |
profile |
Named profile to use to run aws bulk-cli |
aws bulk-cli
can be configured with a json file.
{
"aws": {
"profile": "profile_name",
"region": "region_name",
"cross-account-role-name": "role_name",
"accounts": [
"000000000000",
"111111111111"
]
}
}
- Iterates over the list of AWS accounts
- Assume role
arn:aws:iam::<account_id>:role/<cross-account-role-name>
- Run command in AWS account
- Wait for each command in all accounts to return
- Display command result