Created
April 7, 2016 16:59
-
-
Save dcarley/c748ed6001260fa9bf1f6f5daf4870f3 to your computer and use it in GitHub Desktop.
awscli --query vs. jq
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
subscribed=$(aws sns list-subscriptions | jq -c ".[][] | select(.TopicArn | contains(\"${topic_arn}\")) | .Endpoint" | tr -d \") |
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
subscribed=$(aws sns list-subscriptions --query "Subscriptions[?TopicArn==\`${topic_arn}\`].Endpoint" --output text | tr '\t' '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment