All technological notes.
NAT Instance (outdated, but still at the exam)NAT / Network Address Translation
NAT Instance
Features
public subnetElastic IP attached to itRoute Tables must be configured to route traffic from private subnets to the NAT Instance虽然过时, 但考试会涉及 NAT Instance 和 NAT Gateway 的差别.
Limitations:
ASG in multi-AZ + resilient user-data scriptHTTP / HTTPS traffic coming from Private SubnetsSSH from your home network (access is provided through Internet Gateway)HTTP / HTTPS traffic to the Internet以下, 注意 scr 和 dest 的改变.



NAT GatewayNAT, higher bandwidth, high availability, no administrationNATGW is created in a specific Availability Zone, uses an Elastic IPIGW
Private Subnet => NATGW => IGW5 Gbps of bandwidth with automatic scaling up to 100 Gbps
NAT Gateway is resilient within a single Availability ZoneNAT Gateways in multiple AZs for fault-tolerance
NAT Gateway vs. NAT InstanceNAT Gateway |
NAT Instance |
|
|---|---|---|
| Availability | Highly available within AZ (create in another AZ) | Use a script to manage failover between instances |
| Bandwidth | Up to 100 Gbps | Depends on EC2 instance type |
| Maintenance | Managed by AWS Managed | by you (e.g., software, OS patches, …) |
| Cost | Per hour & amount of data transferred | Per hour, EC2 instance type and size, + network $ |
| Public IPv4 | Y | Y |
| Private IPv4 | Y | Y |
| Security Groups | N | Y |
| Use as Bastion Host? | N | Y |








