aws ec2 describe-vpcs
Jump to navigation
Jump to search
https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpcs.html
aws ec2 describe-vpcs --output=text VPCS 172.31.0.0/16 dopt-74d4af1f default True 688850446548 available vpc-2e452445 CIDRBLOCKASSOCIATIONSET vpc-cidr-assoc-a74320cc 172.31.0.0/16 CIDRBLOCKSTATE associated
aws ec2 describe-vpcs --output=text | grep -w VPCS
Example
aws ec2 describe-vpcs { "Vpcs": [ { "CidrBlock": "172.31.0.0/16", "DhcpOptionsId": "dopt-74d4af1f", "State": "available", "VpcId": "vpc-2e452445", "OwnerId": "688850446548", "InstanceTenancy": "default", "CidrBlockAssociationSet": [ { "AssociationId": "vpc-cidr-assoc-a74320cc", "CidrBlock": "172.31.0.0/16", "CidrBlockState": { "State": "associated" } } ], "IsDefault": true } ] }
See also
- AWS EC2, AWS::EC2,
aws ec2
[describe-instances | describe-instance-status
|run-instances | terminate-instances | stop-instances
|tags
|describe-vpcs
|describe-addresses
|describe-availability-zones
|describe-subnets
|import-key-pair
|create-key-pair
|create-vpc
|create-internet-gateway
|modify-instance-attribute | ec2-instance-connect | get-console-output
] - AWS VPC, AWS default VPC, AWS VPC sharing, AWS subnets, Amazon VPC NAT gateway, Amazon VPN internet gateway, VPC Flow Logs,
aws ec2 create-vpc
,aws ec2 describe-vpcs
, NACL, VPC Scenarios, AWS VPC endpoint, AWS ClassicLink, VPC peering, Reachability Analyzer, AWS internet gateway, VPC Lattice,vpce.amazonaws.com
- VPC, Amazon Virtual Private Cloud, VPC endpoint, VPC flow logging, VPC peering, VPC Scenarios
Advertising: