Загрузка страницы

How to Create a NAT Gateway in AWS

Watch Full Course: https://www.udemy.com/course/how-to-build-a-wordpress-website-on-aws/?referralCode=AFEA59BEE571B7B2E957

How to Create a NAT Gateway in AWS

In this AWS tutorial video, we will create Nat Gateway in each public subnet to enable Amazon EC2 instances in private subnets to access the internet.

NAT Gateway is a highly available AWS managed service that makes it easy to connect to the Internet from instances within a private subnet in an Amazon Virtual Private Cloud (Amazon VPC).

To create a NAT gateway, you must specify a subnet and an Elastic IP address. Ensure that the Elastic IP address is currently not associated with an instance or a network interface. If you are migrating from a NAT instance to a NAT gateway and you want to reuse the NAT instance's Elastic IP address, you must first disassociate the address from your NAT instance.

To create a NAT gateway

1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

2. In the navigation pane, choose NAT Gateways, Create NAT Gateway.

3. Specify the subnet in which to create the NAT gateway, and select the allocation ID of an Elastic IP address to associate with the NAT gateway.

4. (Optional) Add or remove a tag.

5. Choose Create a NAT Gateway.

6. The NAT gateway displays in the console. After a few moments, its status changes to Available, after which it's ready for you to use.

Updating your route table

After you've created your NAT gateway, you must update your route tables for your private subnets to point internet traffic to the NAT gateway. We use the most specific route that matches the traffic to determine how to route the traffic (longest prefix match). For more information, see Route priority.

To create a route for a NAT gateway

1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

2. In the navigation pane, choose Route Tables.

3. Select the route table associated with your private subnet and choose Routes, Edit.

4. Choose Add another route. For Destination, enter 0.0.0.0/0. For Target, select the ID of your NAT gateway.

5. Choose Save.

How to Create a NAT Gateway in AWS

#natgateway #wordpressonaws #aws

Видео How to Create a NAT Gateway in AWS канала AOS Notes
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
21 августа 2020 г. 16:00:02
00:06:39
Яндекс.Метрика