What is vpc ?
- In aws all basic networking is handled by service called vpc
- virtual private network
- creating network in specific region
core components:
- subent – smaller sub-network inside the vpc (all resource like ec2, RDS,EKS, ECS…etc )
- Route Table – A set of rules where network trific should be configure and go
- Internet Gateway (IGW) – provide internet to vpc
- Engress-only Internet gateway – Allow outbound-only internet access from IPV6 Traffic
- NAT Gateway – lets resources in private subnets reach to internet

- Secuirty group (SG)- firewall for servers (ec2 instance) its having inbound and outbound rules.
- NACL – Subnet level firewall (allow or deny rules)

Lets create vpc:
- console (UI)
- aws cli -> access for create network (IAM user)
- boto3/sdk -> core modules
- Infra tools – Ansible, Terraform and cludformation template
VPC:
- /16 cidr Ex: 10.0.0.0/16 – 10.255.0.0/16
- take ip range as uniqe

create subnets:

Task
- create vpc and 4 subnets (2 public and 2 private)
