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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assist users in recovering resources that may have been created despite errors #15958
Comments
Discussed this as part of the linked issue above. We do already have the partial state mechanism however there were two factors at play which could cause it not to work:
I think we could re-scope this to returning the partial state immediately after the create has started to avoid situations where there's interruptions causing the partial error not to be returned. This would likely be implemented an additional request that the provider can make to the engine with the initial state from a creation. This would allow the engine to write the partial state as a placeholder in the checkpoint until the final state is recieved - making the partial state creation more reliable and less likely to loose data. |
|
@Frassle yes, I think that's the same core issue, but looks like it stalled on the variance between clouds where we can't always know the id up-front. Hence, an optional early back-channel would be a nicer approach, if possible. |
Hello!
Issue details
There are cases where
Create
seemingly fails but the resource is actually created, at least partly. This can be due to network issues or internal issues of the cloud provider. An example is pulumi/pulumi-azure-native#3200, where the Azure response was "504 Gateway timeout". If such resources are explicitly named or are singletons, subsequent Pulumiup
's will fail. If they are not, orphaned resources are created.Currently, such resources are absent from Pulumi state. For cases like the one linked above, it would be useful if they were recorded as "probably failed to create but might exist". Then, on the next
up
, the engine could prompt the user that they might want to import them, or refresh if that was extended to cover such resources.The text was updated successfully, but these errors were encountered: