Last updated
Last updated
Returns all the top keys under SecurityGroups
If, in this case, there are multiple Security Groups returned the above would return the same Keys multiple times, one set per security group.
We can alter the query to only return the Keys for one set of data by adding a 0
Returns all the top sub-keys under SecurityGroups.IpPermissions
Makes the returned output pretty JSON and in color.
Only return data for a specific key.
Only return data matching the condition, in this case, where GroupId
equals "sg-0021f1e76215c0548"
Only return data matching the condition, in this case, where IpProtocol
contains -1
Return certain keys for the data matching the condition, in this case, return the GroupName
and GroupId
for all Security Groups containing a rule allowing all protocols, -1
Also, customize the formatting for the output.
Tips and tricks for working with the jq command line utility