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.
╵
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
Soo when you try to run with old version dont works