Hey @Tushar, you can use the describe vpc command for this purpose:
aws ec2 describe-vpcs --vpc-id vpc-1a2b3c4d
You'll see a similar output:
{
"Vpcs": [
{
"VpcId": "vpc-1a2b3c4d",
"InstanceTenancy": "default",
"Tags": [
{
"Value": "MyVPC",
"Key": "Name"
}
],
"CidrBlockAssociations": [
{
"AssociationId": "vpc-cidr-assoc-3781aa5e",
"CidrBlock": "10.0.0.0/16",
"CidrBlockState": {
"State": "associated"
}
},
{
"AssociationId": "vpc-cidr-assoc-0280ab6b",
"CidrBlock": "10.2.0.0/16",
"CidrBlockState": {
"State": "associated"
}
}
],
"State": "available",
"DhcpOptionsId": "dopt-e0fe0e88",
"CidrBlock": "10.0.0.0/16",
"IsDefault": false
}
]
}