AWS Cookbook 2.1 Defining your private virtual network in the Amazon Cloud
Design
Solution
- Create a VPC with an IPV4 CIDR Block.
VPC_ID=$(aws ec2 create-vpc \
--cidr-block 10.10.0.0/16 \
--tag-specifications 'ResourceType=vpc,Tags=[{Key=Name,Value=AWSCookbookSuryendu201}]' \
--output text --query Vpc.VpcId )
Validation Check
aws ec2 describe-vpcs --vpc-ids $VPC_ID
This will result in a similar output.
Cleanup
aws ec2 delete-vpc --vpc-id $VPC_ID