We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First time you run "terraform apply" the rules are deployed. If you run again without changes on script terraform deletes the rules.
On the second run Terraform should return "Nothing to change" because the rule is in the tfstate file.
On the second run Terraform returns "X to change" but it deletes the rules.
# rules.tf resource "panos_security_policy" "google_dns" { device_group = "pan-lab" rule { name = "google_dns" audit_comment = "" source_zones = ["CC-VLAN", "SEC-84"] source_addresses = ["any"] source_users = ["any"] destination_zones = ["untrust"] destination_addresses = ["google_dns"] applications = ["dns"] services = ["application-default"] categories = ["any"] action = "allow" } lifecycle { create_before_destroy = true } } # objects.tf resource "panos_address_object" "google_dns_1" { name = "google_dns_1" value = "8.8.8.8" description = "" type = "ip-netmask" device_group = "pan-lab" lifecycle { create_before_destroy = true } } resource "panos_address_object" "google_dns_2" { name = "google_dns_2" value = "4.4.4.4" description = "" type = "ip-netmask" device_group = "pan-lab" lifecycle { create_before_destroy = true } } resource "panos_panorama_address_group" "google_dns" { name = "google_dns" description = "" device_group = "pan-lab" static_addresses = [ panos_address_object.google_dns_1.name, panos_address_object.google_dns_2.name, ] lifecycle { create_before_destroy = true } }
The text was updated successfully, but these errors were encountered:
Hi team, any update?
Thanks a lot Marco
Sorry, something went wrong.
No branches or pull requests
Describe the bug
First time you run "terraform apply" the rules are deployed.
If you run again without changes on script terraform deletes the rules.
Expected behavior
On the second run Terraform should return "Nothing to change" because the rule is in the tfstate file.
Current behavior
On the second run Terraform returns "X to change" but it deletes the rules.
Steps to reproduce
Your Environment
The text was updated successfully, but these errors were encountered: