PaloAltoNetworks / terraform-provider-prismacloudcompute

Terraform provider for Prisma Cloud Compute
https://registry.terraform.io/providers/PaloAltoNetworks/prismacloudcompute/latest
Mozilla Public License 2.0
24 stars 28 forks source link

State is not tracked properly when policy created with no rules #22

Open wfg opened 3 years ago

wfg commented 3 years ago
│ Error: error setting rule for resource containerRuntime: Invalid address to set: []string{"rule", "0", "AntiMalware"}
│ 
│   with prismacloudcompute_container_runtime_policy.ruleset,
│   on main.tf line 1373, in resource "prismacloudcompute_container_runtime_policy" "ruleset":
│ 1373: resource "prismacloudcompute_container_runtime_policy" "ruleset" {
│ 

Reproduce:

  1. Have no rules in container runtime policy
  2. terraform apply
  3. Create rule in UI
  4. terraform apply
maxboynton commented 1 year ago

Issue has been addressed in the v0.8.0 release (https://github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute/pull/71).