File tree Expand file tree Collapse file tree 9 files changed +20
-0
lines changed Expand file tree Collapse file tree 9 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
1919 name = " my-service"
2020 location = " us-central1"
2121
22+ deletion_protection = false # set to true to prevent destruction of the resource
23+
2224 template {}
2325
2426 # Define the traffic split for each revision
Original file line number Diff line number Diff line change 1919resource "google_cloud_run_v2_service" "default" {
2020 name = " custom-domain"
2121 location = " us-central1"
22+
23+ deletion_protection = false # set to true to prevent destruction of the resource
24+
2225 template {
2326 containers {
2427 image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ resource "google_project_service" "cloudrun_api" {
2828resource "google_cloud_run_v2_service" "default" {
2929 name = " pubsub-tutorial"
3030 location = " us-central1"
31+
32+ deletion_protection = false # set to true to prevent destruction of the resource
33+
3134 template {
3235 containers {
3336 image = " us-docker.pkg.dev/cloudrun/container/hello" # Replace with newly created image gcr.io/<project_id>/pubsub
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
1919 name = " my-service"
2020 location = " us-central1"
2121
22+ deletion_protection = false # set to true to prevent destruction of the resource
23+
2224 template {}
2325
2426 # Define the traffic split for each revision
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
1919 name = " my-service"
2020 location = " us-central1"
2121
22+ deletion_protection = false # set to true to prevent destruction of the resource
23+
2224 template {
2325 containers {
2426 # Image or image tag must be different from previous revision
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ resource "google_cloud_run_v2_service" "default" {
2020 name = " my-service"
2121 location = " us-central1"
2222
23+ deletion_protection = false # set to true to prevent destruction of the resource
24+
2325 template {}
2426
2527 traffic {
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
1919 name = " my-service"
2020 location = " us-central1"
2121
22+ deletion_protection = false # set to true to prevent destruction of the resource
23+
2224 template {}
2325
2426 traffic {
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
1919 name = " my-service"
2020 location = " us-central1"
2121
22+ deletion_protection = false # set to true to prevent destruction of the resource
23+
2224 template {
2325 containers {
2426 image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
1919 name = " my-service"
2020 location = " us-central1"
2121
22+ deletion_protection = false # set to true to prevent destruction of the resource
23+
2224 template {}
2325
2426 # Define the traffic split for each revision
You can’t perform that action at this time.
0 commit comments