nat-gateway
GoogleCloudPlatform/nat-gateway/google
Modular NAT Gateway on Google Compute Engine for Terraform.
NAT Gateway Terraform Module Deprecation Notice NOTE: This module is no longer maintained. Please use Cloud NAT instead. For information on how to migrate to the Cloud NAT module, refer to the migration guide. Usage ``ruby module "nat" { source = "GoogleCloudPlatform/nat-gateway/google" region = "us-central1" network = "default" subnetwork = "default" } ` And add the tag ${module.nat.routing_tag_regional} to your instances without external IPs to route outbound traffic through the nat gateway. Usage `ruby module "mig" { source = "GoogleCloudPlatform/managed-instance-group/google" version = "1.1.14" region = "us-central1" zone = "us-central1-a" name = "testnat" target_tags = ["${module.nat.routing_tag_regional}"] network = "default" subnetwork = "default" } ` Resources created - module.nat-
| Name | Type | Description | Default |
|---|---|---|---|
| region | string | The region to create the nat gateway instance in. | required |
| autohealing_enabled | string | Enable instance autohealing using http health check | false |
| module_enabled | string | To disable this module, set this to false | true |
| subnetwork | string | The subnetwork to deploy to | "default" |
| tags | list | Additional compute instance network tags to apply route to. | [] |
| machine_type | string | The machine type for the NAT gateway instance | "n1-standard-1" |
| compute_image | string | Image used for NAT compute VMs. | "projects/debian-cloud/global/images/fam |
| squid_config | string | The squid config file to use. If not specifed the module file config/squid.conf | "" |
| network_project | string | Name of the project for the network. Useful for shared VPC. Default is var.proje | "" |
| name | string | Prefix added to the resource names, for example 'prod-'. By default, resources w | "" |
| route_priority | string | The priority for the Compute Engine Route | 800 |
| ssh_source_ranges | list | Network ranges to allow SSH from | [
"0.0.0.0/0"
] |
| service_account_email | string | The email of the service account for the instance template. | "default" |
| dest_range | string | The destination IPv4 address range that this route applies to | "0.0.0.0/0" |
| project | string | The project to deploy to, if not set the default provider project is used. | "" |
| ip_address_name | string | Name of an existing reserved external address to use. | "" |
| ip | string | Override the internal IP. If not provided, an internal IP will automatically be | "" |
| squid_enabled | string | Enable squid3 proxy on port 3128. | "false" |
| ssh_fw_rule | string | Whether or not the SSH Firewall Rule should be created | true |
| network | string | The network to deploy to | "default" |
| zone | string | Override the zone used in the `region_params` map for the region. | "" |
instance — The self link to the NAT gateway instance.external_ip — The external IP address of the NAT gateway instance.routing_tag_regional — The tag that any other instance will need to have in order to get the regional routing rulerouting_tag_zonal — The tag that any other instance will need to have in order to get the zonal routing ruledepends_id — Value that can be used for intra-module dependency creation.gateway_ip — The internal IP address of the NAT gateway instance.