nat

NAT Gateway

NetworkingAWS
General

General information about the service.

Description

NAT Gateway enables instances in private subnets to connect to the internet.

Service Namespace

AWS::EC2::NatGateway

ARN Pattern

arn:aws:ec2:{region}:{account}:natgateway/{nat-gateway-id}

References

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

nat-

Length

1-255

Valid Characters

Letters, numbers, hyphens

Scope

availability-zone

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "aws_nat_gateway" "main" {
2 allocation_id = aws_eip.nat.id
3 subnet_id = aws_subnet.public.id
4 tags = { Name = "nat-${var.environment}" }
5}
Utilities

Utilities to support app deployment or configuration.