jfrog / terraform-provider-platform

Terraform provider to manage JFrog Platform
https://jfrog.com
Apache License 2.0
1 stars 1 forks source link

`platform_permission` should replace on name change #64

Closed NiklasRosenstein closed 5 months ago

NiklasRosenstein commented 5 months ago

Describe the bug

This is analogous to https://github.com/jfrog/terraform-provider-artifactory/issues/944, only for the platform_permission resource.

Requirements for and issue

Terraform plans to update a platform_permission resource when the name changes, but the apply fails with "Not Found" (presumably attempting to do some operation on the permission's new name).

Expected behavior

Since a permission target cannot be renamed, it should be replaced.

Additional context

Example:

image image
alexhung commented 5 months ago

@NiklasRosenstein Thanks for the report. I've added this to our plan.