-
Notifications
You must be signed in to change notification settings - Fork 232
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
Drop "Removed" functionality from schema.Schema #320
Comments
I think until the fix for #285 lands, you could potentially address this by not flagging these as computed? |
Just tried that out, and unfortunately they still show in state. I think it might have something to do with the attributes being within a list? Other removed booleans that appear in the schema root are not showing in state. I also tried setting the booleans to nil manually before setting them:
But this just makes them default to I'm unable to do something like
because this returns
|
Once we land v2 of the SDK we may be able to do some work on this. Unfortunately there is a bit of nuance in the I think long term we will most likely remove this functionality (keeping deprecation though, so you can provide warnings up until the point of removal). |
Just a minor data point, I confirmed extra fields in state (not mentioned in schema) are silently ignored, so no need to track what the removed names should be. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
SDK version
Relevant provider source code
Terraform Configuration Files
Debug Output
Expected Behavior
Actual Behavior
terraform apply wants to populate every field including the removed ones:
The state shows the two boolean fields and not the string fields:
Steps to Reproduce
terraform init
terraform apply
terraform show
References
Seems like the solution proposed in #285 (comment) would stop this behavior.
hashicorp/terraform-provider-google#5586
The text was updated successfully, but these errors were encountered: