okta_auth_server_policy priority related repeat deployments #2140
Labels
breaking-change
Will break established behavior of the current minor version of the provider
triaged
Triaged into internal Jira
Community Note
Terraform Version
Terraform 1.9.8
Affected Resource(s)
Terraform Configuration Files
I'm using terraform CDK but the issue is with the underlying provider.
Debug Output
This is not debug output but sufficient to show the issue. In these logs, you can see that an update is being performed to put the priority back to 100.
Expected Behavior
Updates should not occur when no changes have been made to the configuration. (i.e. Idempotent).
Can this be done in the Admin UI?
I don't know
Can this be done in the actual API call?
Yes, because priority is not a required field in the API.
Actual Behavior
Priority is mandatory in the provider. A high number is used so that policies will be inserted in dependency order. Upon creation, the policy is assigned a new priority but that new priority is not captured in state. On the next deployment, the current priority (ex. 1) does not match the plan priority (100) and a change update occurs.
The text was updated successfully, but these errors were encountered: