Skip to content

Commit

Permalink
fix: add deletion_protection to google workflow resources (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt authored Dec 11, 2024
1 parent 6aaaf12 commit 588dda6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eventarc/workflows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ resource "google_workflows_workflow" "default" {
region = "us-central1"
description = "Workflow that returns information about storage events"

deletion_protection = false # set to "true" in production

# Note that $$ is needed for Terraform
source_contents = <<EOF
main:
Expand Down
3 changes: 3 additions & 0 deletions workflows/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ resource "google_workflows_workflow" "default" {
region = "us-central1"
description = "A sample workflow"
service_account = google_service_account.default.id

deletion_protection = false # set to "true" in production

labels = {
env = "test"
}
Expand Down
2 changes: 2 additions & 0 deletions workflows/cloud_run_job/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ resource "google_workflows_workflow" "default" {
region = "us-central1"
description = "Workflow that routes a Cloud Storage event and executes a Cloud Run job"

deletion_protection = false # set to "true" in production

# Note that $$ is needed for Terraform
source_contents = <<EOF
main:
Expand Down

0 comments on commit 588dda6

Please sign in to comment.