Closed VladimirCreator closed 1 month ago
@praneetloke I now cannot update my infrastructure because it did not generate the code and now Pulumi thinks I deleted the resource and it tries to remove it ðŸ«
@VladimirCreator I suggest you temporarily remove the imported web service from your state with pulumi state delete <urn> -s <stack name>
. You can get the URN with pulumi stack --show-urns -s <stack name>
.
@VladimirCreator I had a suspicion that it was because the Render API for "Retrieve Service" does not return the runtime
property and yet it is a required input for "Create Service", so Pulumi tries to use an empty string which ends up failing because runtime
is an enum and it can't use an empty string for it. I proved this to be the case by hacking a local version of the provider where runtime
is not an enum and Pulumi was able to generate the import code successfully.
Note the value of the runtime
property in the screenshot.
I have posted a question in their community forum but I am not sure if they'll fix their API. In the meantime, the only workaround that I can think of (aside from committing my hack where I change the type of runtime
from an enum string to a regular string) is that you use this generated code from my import and adjust it to the values from your state after you run the import. I don't know how complex your web service configuration is though?
@VladimirCreator this should now be fixed with v0.3.12
.
The error occurred after I executed the following command:
It also printed the following: