Forked from gene1wood/list-all-sns-topics-subscribed-to-sqs.bash
Created
June 9, 2021 19:35
-
-
Save ArchTaqi/1396c0546fef0fa9213804a7871876db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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