bland-jackal-6231
06/02/2026, 3:02 PMdeletionProtection (or set to false a resource in a stack), aka unprotect. When I run:
pulumi state unprotect [resource_urn]
...in the stack the resource belongs to, it does nothing. I have even tried:
pulumi state unprotect --all
...and I still see:
deletionProtection: true
Any ideas or help?witty-candle-66007
06/02/2026, 3:15 PMbland-jackal-6231
06/02/2026, 3:19 PMpulumi up in CI/CD, but the job failed because of deletionProtection.
I tried to unprotect them using the methods above, but that did not work. I ended up just manually deleting them in the GCP console and running pulumi refresh.witty-candle-66007
06/02/2026, 3:25 PMdeleteProtection and not the Pulumi resource option protect?bland-jackal-6231
06/02/2026, 3:33 PMerror: sdk-v2/provider2.go:572: sdk.helper_schema: cannot destroy job without setting deletion_protection=false and running `terraform apply`: provider=google-beta@8.41.1
error: deleting urn:pulumi:prod-sleepmelons::bestow-martech-uni::gcp:artifactregistry/repository:Repository$docker:index/image:Image$gcp:cloudrunv2/job:Job::prod-sleepmelons-dbt-job: 1 error occurred:
* cannot destroy job without setting deletion_protection=false and running `terraform apply`
deletionProtection (from the docs) seems like a state thing (coming in from Terraform). It is not a property for an actual Cloud Run job.
deletionProtection: boolean
Whether Terraform will be prevented from destroying the job. Defaults to true. When a terraform destroy or pulumi up would delete the job, the command will fail if this field is not set to false in Terraform state. When the field is set to true or unset in Terraform state, a pulumi up or terraform destroy that would delete the job will fail. When the field is set to false, deleting the job is allowed.
I am now guessing that this is different from protect in the pulumi state.
IMHO, this is weird and confusing. I thought maybe deletionProtection was a synonym/alias for protect. They do the same thing and are not properties of the underlying resource.echoing-dinner-19531
06/02/2026, 3:36 PMbland-jackal-6231
06/02/2026, 3:37 PMCloud Run Deletion Protection: Prevents Terraform from destroying or recreating Cloud Run jobs and services.
from https://docs.cloud.google.com/application-design-center/docs/configure-cloud-run-jobbland-jackal-6231
06/02/2026, 3:37 PMbland-jackal-6231
06/02/2026, 3:39 PMwitty-candle-66007
06/03/2026, 2:52 PM