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
During the work on detailed diff we discovered that we are not correctly marking fully computed properties for re-computation when a resource is replaced: #2660
A similar issue might affect Update - it does not call Plan twice, so it likely also fails to correctly mark computed properties as Unknown if the resource is going to get replaced. This likely has an effect on the correctness of the preview when previewing changes, as the engine does not find out that certain inputs to resources might change.
The other possibility is that the engine is conservative about this and always marks a dependent resource for replacement. In that case perhaps this is fine?
Example
A similar setup to #2660 but what would happen if a secondary resource uses the fully computed ID property of the primary resource as an input. The secondary resource should also get marked for replacement.
If we transition from: properties: {} to properties: {key: "value"} for the PF schema
# testprovider_test.res must be replaced
+/- resource "testprovider_test" "res" {
~ id = "test-id" -> (known after apply)
+ key = "value" # forces replacement
}
Output of pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
VenelinMartinov
changed the title
Investigate the need to re-plan the resource outputs if a resource is going to be replaced in Update
Investigate the need to re-plan the resource outputs in Update if a resource is going to be replaced
Nov 26, 2024
What happened?
During the work on detailed diff we discovered that we are not correctly marking fully computed properties for re-computation when a resource is replaced: #2660
A similar issue might affect
Update
- it does not call Plan twice, so it likely also fails to correctly mark computed properties as Unknown if the resource is going to get replaced. This likely has an effect on the correctness of the preview when previewing changes, as the engine does not find out that certain inputs to resources might change.The other possibility is that the engine is conservative about this and always marks a dependent resource for replacement. In that case perhaps this is fine?
Example
A similar setup to #2660 but what would happen if a secondary resource uses the fully computed ID property of the primary resource as an input. The secondary resource should also get marked for replacement.
If we transition from:
properties: {}
toproperties: {key: "value"}
for the PF schemaWe get:
versus
Output of
pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: