Create VPC

AWS CLI with Amazon VPC

  1. Create VPC using AWS CLI:
aws ec2 create-vpc --cidr-block 10.0.0.0/16 --query Vpc.VpcId --output text

This command will return a VPC ID, which you need to save for the next steps. VPC ID is the unique identifier for your Virtual Private Cloud.

AWS CLI

Use aws ec2 describe-vpcs to list all VPCs and find the correct VPC ID.

🔒 Security Note: When designing your VPC, consider security elements such as Network ACLs and Security Groups to protect your resources.