terraform-google-modules / terraform-google-cloud-nat

Creates and configures Cloud NAT
https://registry.terraform.io/modules/terraform-google-modules/cloud-nat/google
Apache License 2.0
80 stars 68 forks source link

max_ports_per_vm not taken into account #75

Closed vincentaubert closed 2 years ago

vincentaubert commented 2 years ago

TL;DR

since version 4.27 of google provider, my values in entry max_ports_per_vm are alawys set to null

I tried without any value, with values 65536 and 512 and I always get a null during my terraform plan.

Expected behavior

max_ports_per_vm shoud take into account values

Observed behavior

max_ports_per_vm value is always null

Terraform Configuration

module "cloud_router" {
  source  = "terraform-google-modules/cloud-router/google"
  version = "2.0.0"

  name    = "${var.region-eu-west1}-cloud-nat"
  project = var.project_id
  region  = var.region-eu-west1
  network = google_compute_network.vpc_mdm_network.name

  nats = [{
      name : "test"
      source_subnetwork_ip_ranges_to_nat : "LIST_OF_SUBNETWORKS"
      min_ports_per_vm : 32
      max_ports_per_vm : 65536
      enable_dynamic_port_allocation : true
      enable_endpoint_independent_mapping : false
      nat_ip_allocate_option = "MANUAL_ONLY"
      log_config = {
        filter : "ERRORS_ONLY"
      }
      subnetworks = [
        {
          name : google_compute_subnetwork.mysubnetwork.name
          source_ip_ranges_to_nat : [
            "PRIMARY_IP_RANGE"
          ]
        }
      ]
      nat_ips = [
        google_compute_address.my_gateway.self_link,
      ]
    }
]
}

Terraform Version

1.2.3

Additional information

No response

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days