Skip to content

Instantly share code, notes, and snippets.

@dcarley dcarley/with-jq.sh
Created Apr 7, 2016

Embed
What would you like to do?
awscli --query vs. jq
subscribed=$(aws sns list-subscriptions | jq -c ".[][] | select(.TopicArn | contains(\"${topic_arn}\")) | .Endpoint" | tr -d \")
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
You can’t perform that action at this time.