# NAT Gateway

## Overview

Help computers on private subnet, redirect traffic to the Internet. Like a receptionist at a office, who receive phone calls and forwards them to the right person at the office.

## Steps

1. Put NAT Gateway in Public subnet
2. Add a record in Route table of Private subnet. That record (0.0.0.0) points to the NAT Gateway.

## Best practices

* Use 1 NAT per AZ.

## Trivia

* Always put NAT Gateway in a `PUBLIC` subnet.
* IPv4 only, can not used with IPv6
* a regional resource.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mamawhocode.gitbook.io/aws/services/network/vpc/nat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
