Difference between revisions of "Aws ec2 describe-vpcs"

From wikieduonline
Jump to navigation Jump to search
Line 45: Line 45:
  
 
== See also ==
 
== See also ==
* {{aws ec2}}
+
* {{aws ec2 vpc}}
 
* {{AWS VPC}}
 
* {{AWS VPC}}
* {{VPC}}
+
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Revision as of 17:45, 26 October 2021

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 | egrep -w "Name|VPCS"
aws ec2 describe-vpcs --output table
aws ec2 describe-vpcs --output table | egrep "Name|VpcId"
aws ec2 describe-vpcs | grep VpcId

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
        }
    ]
}

Related

See also

Advertising: