After having run a stack up, which failed, I’m lef...
# automation-api
g
After having run a stack up, which failed, I’m left with a Cloud SQL database in GCP which is not referenced in the stack. I try to do a stack refresh, but it doesn’t appear to help, as I get a 409 from GCP on stack up afterwards. How is it possible to recover in this state?
l
Leave the code in, find the resource's import ID (it's documented at the bottom of the registry API page for it), and add the
import
opt to the code. Run
pulumi up
. Once the resource is imported, remove the
import
opt.