Defaults during creation cause provider to clear out values on subsequent updates #387
Closed
6 tasks done
Labels
🪲 bug
Something isn't working
Checklist
Description
Here's a TF block:
And here's an associated diff:
My understanding of what happened here is this:
name
field as the default for thedisplay_name
field, and then read theopenid-configuration
endpoint to populate the provided endpoints. Note that our terraform block doesn't specify any of these fields.Expectation
I'd expect that the provider wouldn't override fields that are defaults set by the management API. I'd expect that it somehow understands and accounts for the fact that some fields default off of others and doesn't undo work that was previously done.
I don't want to need to overspecify my terraform because of defaulting behavior.
Reproduction
A TF block like the one above should be sufficient provided that it's configured to point at a valid
.well-known
endpoint.You'll need to run one apply to create the object, then run another plan to see the diff.
Auth0 Terraform Provider version
0.39.0
Terraform version
1.2.9
The text was updated successfully, but these errors were encountered: