Multi-account enablement script
Instead of this script, we recommend integrating with AWS Organizations and using declarative policies to enable and configure Security Hub CSPM across multiple accounts and Regions.
You can use the Security Hub CSPM multi-account enablement script in GitHub
The script automatically enables AWS Config resource recording for all resources, including global resources, in all Regions. It does not limit recording of global resources to a single Region. To conserve costs, we recommend recording global resources in a single Region only. If you use cross-Region aggregation, this Region should be your home Region. For more information, see Recording resources in AWS Config.
There is a corresponding script to disable Security Hub CSPM across accounts and Regions.