0% found this document useful (0 votes)
8 views1 page

Aws Ec2 Describe

The document outlines a series of AWS EC2 commands for managing Virtual Private Clouds (VPCs). It includes commands for describing VPCs, creating subnets, internet gateways, route tables, and establishing VPC peering connections. The commands are structured to set up networking configurations within the AWS environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Aws Ec2 Describe

The document outlines a series of AWS EC2 commands for managing Virtual Private Clouds (VPCs). It includes commands for describing VPCs, creating subnets, internet gateways, route tables, and establishing VPC peering connections. The commands are structured to set up networking configurations within the AWS environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Aws ec2 describe vpc

aws ec2 describe-vpcs --vpc-ids vpc-0cb8479e9ced43201

aws ec2 create-default-subnet --availability-zone ap-south-1a

aws ec2 create-vpc --cidr-block 10.0.0.0/16 --tag-specification


ResourceType=vpc,Tags=[{Key=Name,Value=Myvpc}]

aws ec2 create-subnet --vpc-id vpc-0a62e5026240c519b --cidr-block 10.0.1.0/24

aws ec2 create-internet-gateway --tag-specification ResourceType=internet-


gateway,Tags=[{Key=Name,Value=Myigw}]

aws ec2 attach-internet-gateway --internet-gateway-id igw-034885aaaf3012ad6 --vpc-id vpc-


0a62e5026240c519b

aws ec2 create-route-table --vpc-id vpc-0a62e5026240c519b

aws ec2 create-route --route-table-id rtb-04e8e7821ad8ebcf4 --destination-cidr-block


0.0.0.0/0 --gateway-id igw-034885aaaf3012ad6

aws ec2 associate-route-table --route-table-id rtb-04e8e7821ad8ebcf4 --subnet-id subnet-


066f559776c448047

aws ec2 create-vpc-peering-connection --vpc-id aaaaa --peer-vpc-id bbbb

aws ec2 accept-vpc-peering-connection --vpc-peering-connection-id zzzzz

You might also like