Skip to content

Instantly share code, notes, and snippets.

@paulwakeford
Created September 5, 2019 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulwakeford/0f0760802a9ba45f2716cf8a27ee968f to your computer and use it in GitHub Desktop.
Save paulwakeford/0f0760802a9ba45f2716cf8a27ee968f to your computer and use it in GitHub Desktop.
#!/bin/bash
for region in `aws ec2 describe-regions --region us-east-1 --output text | cut -f3`
do
echo -e "Enabling GuardDuty in region:'$region'..."
aws guardduty create-detector --enable --region $region
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment