Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created January 22, 2021 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcolazurdo/300996d1e9def6de71a1592de0fd790b to your computer and use it in GitHub Desktop.
Save pcolazurdo/300996d1e9def6de71a1592de0fd790b to your computer and use it in GitHub Desktop.
JQ for botocore

This example helps to find a specific property into all the APIs that supports it

cat service-2.json | jq '[paths(.)] | .[] | flatten| select ( . | index("CopyTagsToSnapshot") ) '

To be more specific, this helps

cat service-2.json | jq '[paths(.)] | .[] | flatten| select ( . | index("CopyTagsToSnapshot") ) | .[1]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment