Assist users in recovering resources that may have been created despite errors #15958
Labels
area/cli
UX of using the CLI (args, output, logs)
area/engine
Pulumi engine
kind/enhancement
Improvements or new features
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: