paultyng/terraform-provider-unifi

unifi_port_forward name is required

Opened this issue · 0 comments

if you create a "unifi_port_forward" with the name absent you are able to apply the change but when you navigate to the UDMP management console it throws an error! should probably implement validation on required fields and avoid conflicts. For example I had an existing port forwarding setting for my Roon ARC server and I was able to create another one that conflicted with the same IP range. maybe conflicting IP ranges its possible but at least required fields should be validated.

resource "unifi_port_forward" "roon" {
  name                   = "Roon ARC"
  port_forward_interface = "wan"
  dst_port               = "45584"
  fwd_ip                 = "192.168.1.39"
  fwd_port               = "45584"
  log                    = true
}