How do i use jq to filter json output from aws cli?
-
Link to jq man page: https://www.lightnetics.com/post/8436
AWS has filter on some cli commands, you can also use
jq
$ aws iam list-users | jq ".Users[].Arn"
Takes the first array, object Arn and display it, after which you can run do further filtering with tools like sed, to get the string in the format you require.
© Lightnetics 2024