Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Last active June 9, 2021 19:35
Show Gist options
  • Save gene1wood/a73a7dbe94372ab3598da2863ffc6c74 to your computer and use it in GitHub Desktop.
Save gene1wood/a73a7dbe94372ab3598da2863ffc6c74 to your computer and use it in GitHub Desktop.
for region in `aws ec2 describe-regions --query 'Regions[].RegionName' --output text`; do
aws sns list-subscriptions --query "Subscriptions[?starts_with(Endpoint, 'arn:aws:sqs:')].[TopicArn, Endpoint]" --output text --region $region
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment