Is it save to have a stack change from `gcp.projec...
# general
c
Is it save to have a stack change from
gcp.projects.Services
to
gcp.projects.Service
? Pulumi shows it will delete the resource, but will that disable all of the APIs?
w
That might not actually be safe. The create of the new resource will happen before the delete of the old resource, and depending on how GCP and the upstream Terraform provider implement this, that may actually delete the service access. If you want to be safe, you could add the
gcp.projects.Service
, deploy it,
pulumi state delete
the
gcp.projects.Services
, remove the
gcp.projects.Services
from code, and deploy again.
c
This seems like something that should probably have been handled when pulumi updated the terraform provider to v3
Very easy to completely break an entire GCP project
I am going the route of the state delete, but overall, this is quite scary
w
Ahh - actually - there is a key thing I wasn't aware of -
gcp.projects.Services
has a
disableOnDestroy
which can be set to false.
Then you can make this change safely if you've deployed that change first.
c
Can’t though because the resource doesn’t exist anymore.
I’m already passed this, but other people may not be.
The resource in the SDK that is