Amazon Web Services
advanced
Give a private subnet outbound internet with a NAT gateway
Extend a VPC with a NAT gateway so private instances can download updates while staying unreachable from the internet – a core Solutions Architect pattern.
What you'll do
- Build public and private subnets
- Allocate an Elastic IP
- Deploy a NAT gateway in the public subnet
- Route private traffic through NAT
Lab tasks
-
1
Create VPC
app-vpc(172.20.0.0/16) -
2
Create
app-public(172.20.1.0/24) andapp-private(172.20.10.0/24) -
3
Make
app-publica public subnet - 4 Allocate an Elastic IP address
-
5
Create NAT gateway
app-natin the public subnet -
6
Create
app-private-rtwith a default route to the NAT gateway -
7
Associate
app-private-rtwithapp-private