I am new to terraform and AWS networking. I have the following tips. Hope people may find them useful.
- Draw your AWS Architecture Diagram
- which provides an anchor and north star during builing your infrastructure
- Need to create internet gateway for new created VPC.
- It is because default VPC in AWS comes with default internet gateway.
- but new created VPC does not have default internet gateway.
- Need to create NAT gateway for resources (e.g. ec2) in private subnets to access internet (egress traffic)
- note: egress traffic means internet requests FROM the resources
- Need to create security group for resources in private subnet