Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- regions=$(aws ec2 describe-regions --profile awslabs --region us-east-1 --query Regions[].RegionName --output text)
- for region in $regions; do
- echo Checking $region
- aws rds describe-db-instances --region $region --profile awslabs --output text
- aws ec2 describe-instances --region $region --profile awslabs --output text
- aws ec2 describe-nat-gateways --region $region --profile awslabs --output text
- aws elb describe-load-balancers --region $region --profile awslabs --output text
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement