nat

Cloud NAT

NetworkingGCP
General

General information about the service.

Description

Google Cloud NAT lets certain resources without external IP addresses create outbound connections to the internet.

Service ID

compute.googleapis.com

Resource Pattern

projects/{project}/regions/{region}/routers/{router}

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-{workload}-{environment}

Length

1-63

Valid Characters

Lowercase letters, numbers, hyphens

Scope

region

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "google_compute_router_nat" "main" {
2 name = "nat-${var.environment}"
3 router = google_compute_router.main.name
4 region = var.region
5 nat_ip_allocate_option = "AUTO_ONLY"
6 source_subnetwork_ip_ranges_to_nat = "ALL_SUBNETWORKS_ALL_IP_RANGES"
7}
Utilities

Utilities to support app deployment or configuration.