PaloAltoNetworks / terraform-provider-prismacloud

Terraform PrismaCloud provider
https://www.terraform.io/docs/providers/prismacloud/
Mozilla Public License 2.0
54 stars 65 forks source link

Terraform provider plan shows inconsistent output for compliance report #257

Open tundepalo opened 1 year ago

tundepalo commented 1 year ago

Describe the bug

Issue reproducible every time. When updating a compliance report that had been created using terraform provider, I get a plan output that terraform will update a report which I have not updated

Expected behavior

The plan should only show that its updating the desired report and not all the reports

Current behavior

I get a plan output that terraform will update reports which I have not updated

Possible solution

Plan should only show that updates that are being made In my case, show a destroy and no updates

Steps to reproduce

Use the following link to create a compliance report : https://registry.terraform.io/providers/PaloAltoNetworks/prismacloud/latest/docs/resources/report

  1. Create a multiple scheduled compliance report that scheduled to run on the first day of every month
  2. Use a json config to create multiple reports - in my case two AWS - ISO 27001:2013
  3. Run terraform plan and apply and see reports created successfully
  4. Modify the json config to remove one of the reports
  5. Run terraform plan and observe that the plan output displays - 1 to change and 1 to destroy when it should ideally just show 1 to destroy and 0 to change

Screenshots

terraform report

Context

Customer has raises a CS support case, I have reproduced the issue internally and confirmed issue

Your Environment

PCS Prisma Cloud Lab IDE: VSC

welcome-to-palo-alto-networks[bot] commented 1 year ago

:tada: Thanks for opening your first issue here! Welcome to the community!