Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ArchTaqi/1396c0546fef0fa9213804a7871876db to your computer and use it in GitHub Desktop.
Save ArchTaqi/1396c0546fef0fa9213804a7871876db 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