You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That coding d.Partial() and d.SetPartial() into the update logic is beneficial.
Actual Behavior
Their usage is only beneficial in very small edge cases, e.g. when those attributes are not refreshed on the next run after an error occurs (Terraform is called with -refresh=false). As another side effect, only the configuration value is passed through into the state, not the potentially different API result after re-read, which could be incorrect.
Most resources should already be coded to perform a full refresh of all possible attribute values for drift detection, so partial state updates would (and should 😄 ) be overwritten on the next Terraform run.
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.
ghost
locked and limited conversation to collaborators
Mar 8, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugSomething isn't workingdocumentationImprovements or additions to documentation
SDK version
Relevant provider source code
Expected Behavior
That coding
d.Partial()
andd.SetPartial()
into the update logic is beneficial.Actual Behavior
Their usage is only beneficial in very small edge cases, e.g. when those attributes are not refreshed on the next run after an error occurs (Terraform is called with
-refresh=false
). As another side effect, only the configuration value is passed through into the state, not the potentially different API result after re-read, which could be incorrect.Most resources should already be coded to perform a full refresh of all possible attribute values for drift detection, so partial state updates would (and should 😄 ) be overwritten on the next Terraform run.
Steps to Reproduce
terraform apply
(with error)terraform apply -refresh=false
(not recommended)References
The text was updated successfully, but these errors were encountered: