I messed up big time. I created a GCP project with...
# general
c
I messed up big time. I created a GCP project with pulumi and now I can’t remove the project from pulumi code since there are multiple resources that depend on it
d
Are you trying to delete the project, or just drop it from code?
c
just trying to drop it from code
d
Easiest way would be to set the project name in config or hardcoded, and update any resources to reference the string instead. This shouldn't trigger recreations in pulumi for the next
up
. Once that's done, you'll be able to remove the project in code. Be sure to set retain_on_delete: https://www.pulumi.com/docs/concepts/options/retainondelete/
You need to set retain_on_delete, then up, then delete the code
c
What about the child resources that depend on it?
d
The child resources need to switch to using a hard coded string instead of depending on the project resource