3 ms·
Not related to with_entries, but I didn't see anywhere else in this thread that mentioned dealing with awscli output from_entries handles nicely the Tags in a
by philsnow 7y ago
Not related to with_entries, but I didn't see anywhere else in this thread that mentioned dealing with awscli output
from_entries handles nicely the Tags in a lot of awscli output, you can do things like
aws ec2 describe-instances | \
jq '.Reservations[].Instances[] |
{Role: .Tags | from_entries | .role,
Name: .Tags | from_entries | .name,
Id: .InstanceId}' \
-C -c | sort | less -R
to get a summary of all your instances sorted by role.