Create NAT Gateway
Create NAT Gateway
Generate an Elastic IP address
- Access EC2
- Select Elastic IPs
- Select Allocate Elastic IP address

- In the Allocate Elastic IP address interface
- Public IPv4 address pool, select Amazon’s pool of IPv4 addresses
- Select Allocate

- We have successfully created a Public IP Address: 13.213.151.199

- Access to VPC
- Select NAT Gateways
- Create NAT gateway

- In NAT gateway interface
- Name, enter
NAT gateway
- Subnet, select Public subnet 2
- Connectivity type, select Public
- Elastic IP allocation ID, select Elastic IP just created.

- Select Create NAT gateway

- Successfully created NAT gateway

Create Route table - Private and assign to private subnets.
- In the VPC interface
- Select Route Tables
- Select Create route table

- In the Route table interface
- Name, enter
Route table - Private
- VPC, select ASG vpc
- Select Cretae route table

- Finish creating Route table - Private

- In the Route table - Private interface
- Select Subnet Associations
- Select Edit subnet associations

- In the Edit subnet associations interface
- Choose 2 private subnets
- Select Save associations

- In the Route table - Private interface
- Select Routes
- Select Edit routes

- In the Edit routes interface
- Select Add route
- Select Destination: 0.0.0.0/0
- Target: NAT Gateway
- Select Save changes

- Double check Routes

- Test ping amazon.com successfully from EC2 Private.
ping amazon.com -c5
