steampipe-samples
steampipe-samples copied to clipboard
New Parameter Regions for aws-organizations-scripts/generate_config_for_cross_account_roles.sh
Problem: I realized that the script is currently unusable for us, as we actively block most regions except for 3. When using the config generated by the script, I receive a lot of AccessDenied Errors, which come from API calls being made to blocked regions.
Solution I added a new cli parameter that overwrites the default of ["*"] if it is specified.
Test I tested it locally and on EC2 and ensured that the change is backwards compatibly for anyone currently using the script. If the new parameter isn't specified, the old default is used.