Eric Hammond shares a super-handy tip for those of us who work with Amazon AWS via the command line:
I just learned about a recent addition to aws-cli: The
--queryoption lets you specify what parts of the response data structure you want output.
Instead of wading through pages of JSON output, you can select a few specific values and output them as JSON, table, or simple text. The new
--queryoption is far easier to use than
cut, or Perl, my other fallback tools for parsing the output.
Read the rest of his blog post for a few examples of how to use it.