Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.62 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.62 KB

NAT Gateway Terraform Module

Modular NAT Gateway on Google Compute Engine for Terraform.

Usage

module "nat" {
  source     = "GoogleCloudPlatform/nat-gateway/google"
  region     = "us-central1"
  network    = "default"
  subnetwork = "default"
}

And add the tag ${module.nat.routing_tag_regional} or ${module.nat.routing_tag_zonal} to your instances without external IPs to route outbound traffic through the nat gateway.

Usage

module "mig" {
  source      = "github.com/GoogleCloudPlatform/terraform-google-managed-instance-group"
  region      = "us-central1"
  zone        = "us-central1-a"
  name        = "testnat"
  target_tags = ["${module.nat.routing_tag_regional}"]
  network     = "default"
  subnetwork  = "default"
}

Resources created