When running `pulumi down` on a stack that has a GCP Cloud Run service, I am getting the following e...
b
When running
pulumi down
on a stack that has a GCP Cloud Run service, I am getting the following error:
Copy code
deleting urn:pulumi:dev::xxx::gcp:cloudrunv2/service:Service::xxx: 1 error occurred:
        * cannot destroy service without setting deletion_protection=false and running `terraform apply`
After banging my head on the wall, I read the Terraform docs. There is an
Input
for the resource that is missing from Pulumi but is in Terraform for
deletion protection.
This state is used by TF and shows up as an undocumented
Output
on the resource. I had to add it and set it to false. Run an
UP
so it would be put in state (this is not a setting on the Cloud Run resource itself). After all that, I can drop the resource.