The SDKv2 Bridge swallows resource init errors when run under PlanResourceChange #2696
Labels
impact/regression
Something that used to work, but is now broken
kind/bug
Some behavior is incorrect or out of spec
p1
A bug severe enough to be the next item assigned to an engineer
resolution/fixed
This issue was fixed
What happened?
Under PlanResourceChange, the SDKv2 bridge incorrectly returns just an error to the engine in cases where the resource has been partially initialized. It should instead return both the error and the partial state, including the ID so that the engine can save the resource and re-attempt to update it on the next
up
.References:
PRC:
pulumi-terraform-bridge/pkg/tfshim/sdk-v2/provider2.go
Line 350 in 03b9498
non-PRC:
pulumi-terraform-bridge/pkg/tfshim/sdk-v2/provider.go
Line 130 in 180b924
Discovered in pulumi/pulumi-gcp#2700
Example
Discovered in pulumi/pulumi-gcp#2700
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: