Explain the steps to set up a secured VPC with subnets and everything
1. Create VPC:
Define VPC CIDR block and tenancy.
Enable DNS support and DNS hostnames if needed.
2. Create Subnets:
Allocate CIDR blocks for subnets.
Spread subnets across availability zones for redundancy.
3. Configure Route Tables:
Define routes for internet-bound traffic.
Associate subnets with route tables.
4. Set Up NACLs:
Configure inbound and outbound rules.
Associate NACLs with subnets.
5. Implement Security Groups:
Define inbound and outbound rules
Associate security groups with instances.
6. Add Internet Gateway (IGW):
Attach IGW to VPC.
Update route tables for internet access.
7. Optional - NAT Gateway/Instance:
Set up in public subnet for private subnet internet access.
8. Enable Monitoring:
Enable VPC Flow Logs for traffic analysis.
Monitor with CloudWatch.
0 Comments