AWS CLI: Filtering for Output

The command below will show only the availability zones for the user’s default Region (as specified in aws configure).

aws ec2 describe-availability-zones --query 'AvailabilityZones[*].ZoneId'

The command without the query.

Raw JSON Output

Filtered output…

Filtered JSON Output
You May Also Like