10. How EC2, VPC, Subnets, Internet Gateway, Route Tables, and NAT Gateway work together
10. How EC2, VPC, Subnets, Internet Gateway, Route Tables, and NAT Gateway work together
How EC2, VPC, Subnets, Internet Gateway, Route Tables, and NAT Gateway work together
Prerequisites
1. How to work together
A VPC consists of multiple components that work together to support EC2 instances. It contains subnets that are used to logically separate resources for better management and security. To enable communication with the public internet, an Internet Gateway is attached to the VPC. Route tables are used to control how traffic is routed within the network. For instances in private subnets that require outbound internet access, a NAT Gateway is used.
1-1. Process
1-2. Simple Process
2. How to work at Public EC2
2-1. Outbound with request
2-2. Inbound with response
3. How to work at Private EC2
4. What components they should have
This post is licensed under CC BY 4.0 by the author.





