Skip to content
New issue

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

Report modification attempts update instead of destroy & recreate #294

Open
CanadaLifeKyle opened this issue Jul 12, 2024 · 0 comments
Open
Labels

Comments

@CanadaLifeKyle
Copy link

Describe the bug

When modifying a prismacloud_report resource, the terraform provider will attempt to modify the existing report.
Aside from updating the notification or scheduling fields of a reoccurring report, the Prisma API does not allow for modification of a report.

This results in incomplete modifications of reports and terraform incorrectly reporting a successful apply.

Expected behavior

When making a modification to any field other than notify_to, notification_template_id or schedule, the report resource should be destroyed and recreated.

Current behavior

Terraform attempts a modification and reports success even when immutable values are affected.

Possible solution

Either destroy and recreate reports on modification;
or add logic to allow modification in place when updating valid fields, otherwise destroy and recreate.

Your Environment

Terraform v1.9.1
Prismacloud provider 1.5.6

Terraform executed within Gitlab pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant