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

prismacloudcompute_alertprofile always shows changes on the "alert_triggers" block #65

Closed aymericpineau closed 1 year ago

aymericpineau commented 2 years ago

prismacloudcompute 0.7.0

Describe the bug

Doing "terraform plan/apply" over and over again wihout any change in the Terraform code shows the "prismacloudcompute_alertprofile > alert_triggers" block to always create every single item

Expected behavior

Once created and no updates are made, the "prismacloudcompute_alertprofile > alert_triggers" block should not show any update in the terraform plan/apply.

Current behavior

Every single time terraform plan/apply is run, Terraform shows the "prismacloudcompute_alertprofile > alert_triggers" block to create every single item. image

maxboynton commented 1 year ago

As of the latest release, this issue will only occur if there are triggers (the configuration block for which has now been renamed to policy) specified that aren't relevant to webhook alerts, which are the only alert profile types supported presently. Below is a list of all the policies that apply to webhook alerts:

If any of the policies that are supported by the provider but are NOT in the above list are specified in the template, this issue will occur.