Created
August 19, 2022 09:51
-
-
Save huevos-y-bacon/77cd1f4735573cba0077ff2e3cab9dd0 to your computer and use it in GitHub Desktop.
AWS SecurityHub - Disable AWS SecurityHub in all regions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for r in `aws ec2 describe-regions --query 'Regions[].RegionName' --out text`; do | |
echo $r; | |
aws securityhub disable-security-hub --region $r; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment