terraform-aviatrix-modules / terraform-aviatrix-mc-overlap-nat-spoke

This configures Aviatrix spoke gateways to deal with IP overlap in the spoke VNET/VPC by adding NAT rules and route propagation
Apache License 2.0
0 stars 7 forks source link

terraform version required 1.1.0 #2

Closed fe-eccel closed 2 years ago

fe-eccel commented 2 years ago

for use nullable = false in the variable "dnat_rules"

required terraform version 1.1.0 https://www.terraform.io/language/values/variables#disallowing-null-input-values

variable "dnat_rules" {
  description = "Contains the properties to create the DNAT rules. When left empty, only SNAT for traffic initiated from the spoke VNET/VPC is configured."
  type        = map(any)
  nullable    = false
  default = {
    dummy = {
      dst_cidr  = "0.0.0.0/0",
      dst_port  = "80",
      protocol  = "tcp",
      dnat_ips  = "0.0.0.0",
      dnat_port = "80",
    }
  }
}

Soo when you try to run with old version dont works

╷
│ Error: Unsupported argument
│ 
│   on variables.tf line 21, in variable "dnat_rules":
│   21:   nullable    = false
│ 
│ An argument named "nullable" is not expected here.
╵
Dennizz commented 2 years ago

Solved