Skip to main content

NAT Gateway

A NAT (Network Address Translation) Gateway is a critical cloud resource provided by AWS within your VPC (Virtual Private Cloud) that allows instances in a private subnet to connect to the internet or other AWS services, but prevents the internet from initiating a connection with those instances. NAT Gateways are highly available and managed by AWS, offering a secure and scalable solution for outbound internet traffic. For more detailed information, you can visit the official AWS documentation.

Terrafrom Mappings:

  • aws_nat_gateway.id

Supported Methods​

  • GET: Get a NAT Gateway by ID
  • LIST: List all NAT gateways
  • SEARCH: Search for NAT gateways by ARN

ec2-vpc​

A NAT Gateway is deployed within a Virtual Private Cloud (VPC). It enables instances within the VPC's private subnets to access the internet while maintaining the security of the VPC.

ec2-subnet​

The NAT Gateway is associated with a specific subnet in a VPC. Typically, a NAT Gateway is launched in a public subnet, which allows resources in private subnets to have outbound internet access while keeping those resources unexposed from the outside.

ec2-network-interface​

Every NAT Gateway is automatically assigned a network interface, which provides the necessary connectivity within the VPC to route traffic from private subnets to the internet and back.

ip​

A NAT Gateway is assigned a public IP address, which it uses to translate and reroute traffic from private IP addresses of instances within the VPC's subnets to the internet, allowing for outbound connectivity while shielding internal IP addresses from being exposed.