🔧 Step-by-Step via AWS Console:
Login to AWS Console → Go to https://console.aws.amazon.com/

Search for “VPC” in the search bar and select “VPC Dashboard”.

On the left panel, click “Your VPCs” → Click “Create VPC”.

Choose “VPC only” or “VPC with subnets” (recommended if you want it ready-to-go).

Fill in details like:

Name tag: dev-vpc

IPv4 CIDR block: 10.0.0.0/16 (or adjust based on your needs)

Leave other settings default unless specific requirements are there.

Click “Create VPC”.

(Optional) Add Subnets, Internet Gateway, Route Tables, Security Groups, and NAT Gateway depending on whether it's a public/private setup.

🖥️ Using AWS CLI to Create a Basic DEV VPC
Make sure AWS CLI is installed and configured (aws configure).

bash
Copy
Edit

Step 1: Create the VPC

aws ec2 create-vpc \
--cidr-block 10.0.0.0/16 \
--tag-specifications 'ResourceType=vpc,Tags=[{Key=Name,Value=dev-vpc}]'

Step 2: Create a subnet (example in us-east-1a)

aws ec2 create-subnet \
--vpc-id vpc-xxxxxxxx \
--cidr-block 10.0.1.0/24 \
--availability-zone us-east-1a \
--tag-specifications 'ResourceType=subnet,Tags=[{Key=Name,Value=dev-subnet}]'

Step 3: Create and attach an internet gateway

aws ec2 create-internet-gateway \
--tag-specifications 'ResourceType=internet-gateway,Tags=[{Key=Name,Value=dev-igw}]'

aws ec2 attach-internet-gateway \
--vpc-id vpc-xxxxxxxx \
--internet-gateway-id igw-xxxxxxxx