AWS Cookbook 2.1 Defining your private virtual network in the Amazon Cloud

AWS Cookbook 2.1 Defining your private virtual network in the Amazon Cloud

Design

Design

Solution

  1. 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. Output

Cleanup

aws ec2 delete-vpc --vpc-id $VPC_ID

Share: X (Twitter) Facebook LinkedIn Reddit