Forked from andytumelty/aws query example: show VPC ID, Name and CIDR
Created
December 4, 2021 14:55
-
-
Save sagarrakshe/17b8c5e5c868fefe656838c322083336 to your computer and use it in GitHub Desktop.
AWS CLI List VPC ID, Name and CIDR Block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# display VPC ID, CIDR Block and Name | |
aws ec2 --output text --query 'Vpcs[*].{VpcId:VpcId,Name:Tags[?Key==`Name`].Value|[0],CidrBlock:CidrBlock}' describe-vpcs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment