You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script can be used to generate the aws config file and steampipe aws.spc files for a single AWS Organization. Usage is:
15
-
`./generate_config_for_cross_account_roles.sh [IMDS | LOCAL ] <AUDITROLE> <AWS_CONFIG_FILE> <SOURCE_PROFILE>`, where:
16
-
`IMDS` if you're running in EC2.
17
-
`LOCAL` if you're running from the local machine.
18
-
`AUDITROLE` is the name fo the [cross-account role](https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html) created in all accounts.
19
-
`AWS_CONFIG_FILE` is where the script will output the AWS SDK profiles
20
-
`SOURCE_PROFILE` is only required when `LOCAL` is specified. It is the profile with the local credentials used to perform the [AssumeRole](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html) on the cross-account role.
15
+
`./generate_config_for_cross_account_roles.sh [IMDS | LOCAL ] <AUDIT_ROLE> <AWS_CONFIG_FILE> <SOURCE_PROFILE>`, where:
16
+
*`IMDS` if you're running in EC2.
17
+
*`LOCAL` if you're running from the local machine.
18
+
*`AUDIT_ROLE` is the name fo the [cross-account role](https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html) created in all accounts.
19
+
*`AWS_CONFIG_FILE` is where the script will output the AWS SDK profiles
20
+
*`SOURCE_PROFILE` is only required when `LOCAL` is specified. It is the profile with the local credentials used to perform the [AssumeRole](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html) on the cross-account role.
This script takes a list of AWS Management Accounts, and uses the specified `--rolename` to AssumeRole into the management account, list the child accounts, and build an AWS Config File and aws.spc file. Usage is:
@@ -29,4 +29,3 @@ Please refer to the [documentation on steampipe.io](https://steampipe.io/docs/gu
0 commit comments