Open denwurm opened 9 months ago
:tada: Thanks for opening your first issue here! Welcome to the community!
This is not a documentation issue, there simply just is not an option to specify a device group on a nat rule
This should be classed as a bug
Documentation link
https://registry.terraform.io/providers/PaloAltoNetworks/panos/latest/docs/resources/nat_rule_group
Describe the problem
The documentation does not explain where the device_group statement is supposed to be used nor show it in the example.
Terraform also throws the following error when used in the code: Error: Unsupported argument │ │ on natrules.tf line 2, in resource "panos_nat_rule_group" "bottom": │ 2: device_group = "${panos_device_group.create_eu_device_group.id}" │ │ An argument named "device_group" is not expected here.
Suggested fix