Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. for region in `aws ec2 describe-regions --region us-east-1 --output text | cut -f3`
  3. do
  4. echo -e "Enabling GuardDuty in region:'$region'..."
  5. aws guardduty create-detector --enable --region $region
  6. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement