Create NAT Gateway

Create NAT Gateway

  1. Access EC2:
    • Select Elastic IPs
    • Select Allocate Elastic IP address

Create VPC

  1. In the Allocate Elastic IP address interface:
    • Public IPv4 address pool: Select Amazon’s pool of IPv4 addresses
    • Select Allocate

Create VPC

  1. Successfully created a Public IP Address

Create VPC

  1. Access VPC:
    • Select NAT Gateways
    • Create NAT gateway

Create VPC

  1. In NAT gateway interface:
    • Name: Enter NAT gateway
    • Subnet: Select Public subnet 2
    • Connectivity type: Select Public
    • Elastic IP allocation ID: Select recently created Elastic IP

Create VPC

  1. Select Create NAT gateway

Create VPC

  1. Successfully created NAT gateway

Create VPC

Create Route table - Private and assign to private subnets

  1. In the VPC interface:
    • Select Route Tables
    • Select Create route table

Create VPC

  1. In the Route table interface:
    • Name: Enter Route table - Private
    • VPC: Select ASG VPC
    • Select Create route table

Create VPC Create VPC

  1. Finish creating Route table - Private

Create VPC

  1. In the Route table - Private interface:
    • Select Subnet Associations
    • Select Edit subnet associations

Create VPC

  1. In the Edit subnet associations interface:
    • Choose 2 private subnets
    • Select Save associations

Create VPC

  1. In the Route table - Private interface:
    • Select Routes
    • Select Edit routes

Create VPC

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

Create VPC Create VPC

  1. Double check Routes

Create VPC

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

Create VPC