sdk-v2/provider2.go:385: sdk.helper_schema: Error creating App: POST <https://api.digitalocean.com/v2/apps>: 409 (request "8e8115a8-16cf-49e8-8c13-e14d6d5b011a") App name already exists: provider=digitalocean@4.31.1
I'd like to complete deployment of my stack.
b
bumpy-midnight-83719
09/26/2024, 11:09 PM
Based on the error it appears you need to change the name of your app or if you want to reuse existing infra you'd need to import it into Pulumi via
pulumi import ...
b
bored-car-93231
09/28/2024, 10:41 PM
The importing may work, however this is counter intuitive as a worflow. The resources before it exists but no app/resource exist error.
I suspect the reason why there is an error on this resource seems to be a derivative of the fact that it had an error before on its creation, and so was never "fully" created.
Thus it should make sense that the second time around pulumi should either sync as fully created or restate the original error.
b
bumpy-midnight-83719
09/30/2024, 4:45 PM
That depends on whether or not the pulumi update got to the point of receiving enough information back from the provider to know whether something exists or not.
Eg- if Pulumi tells provider A to create a resource and the update is interrupted before Pulumi gets confirmation that something is actually created, then there really isn't a way for Pulumi to sync.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.