File tree 31 files changed +65
-1
lines changed
cloud_run_configuration_concurrency
cloud_run_configuration_containers
cloud_run_configuration_cpu
cloud_run_configuration_cpu_allocation
cloud_run_configuration_description
cloud_run_configuration_environment_variables
cloud_run_configuration_http2
cloud_run_configuration_labels
cloud_run_configuration_max_instances
cloud_run_configuration_memory_limits
cloud_run_configuration_min_instances
cloud_run_configuration_request_timeout
healthchecks_liveness_probe_grpc
healthchecks_liveness_probe_http
healthchecks_startup_probe_http
31 files changed +65
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ resource "google_cloud_run_v2_service" "default" {
93
93
name = " hello-events"
94
94
location = " us-central1"
95
95
96
+ deletion_protection = false # set to "true" in production
97
+
96
98
template {
97
99
containers {
98
100
# This container will log received events
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ resource "google_cloud_run_v2_service" "default" {
20
20
name = " cloud-run-srv"
21
21
location = " us-central1"
22
22
23
+ deletion_protection = false # set to "true" in production
24
+
23
25
template {
24
26
containers {
25
27
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-concurrency"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-containers"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-cpu"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-cpu-allocation"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ resource "google_cloud_run_v2_service" "default" {
23
23
24
24
description = " This service has a custom description"
25
25
26
+ deletion_protection = false # set to "true" in production
27
+
26
28
template {
27
29
containers {
28
30
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-env-var"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-h2c"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-labels"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-max-instances"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-memory-limits"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-min-instances"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service-request-timeout"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ resource "google_cloud_run_v2_service" "default" {
155
155
name = " cloudrun-service"
156
156
location = " us-central1"
157
157
158
+ deletion_protection = false # set to "true" in production
159
+
158
160
template {
159
161
containers {
160
162
image = " us-docker.pkg.dev/cloudrun/container/hello:latest" # Image to deploy
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
19
19
name = " cloudrun-srv"
20
20
location = " us-central1"
21
21
22
+ deletion_protection = false # set to "true" in production
23
+
22
24
template {
23
25
containers {
24
26
# image or tag must be different from previous revision
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
21
21
name = " cloudrun-service"
22
22
location = " us-central1"
23
23
24
+ deletion_protection = false # set to "true" in production
25
+
24
26
template {
25
27
containers {
26
28
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ resource "google_cloud_run_v2_service" "default" {
26
26
name = " cloudrun-service-healthcheck"
27
27
location = " us-central1"
28
28
29
+ deletion_protection = false # set to "true" in production
30
+
29
31
template {
30
32
containers {
31
33
# Note: Change to the name of your image
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ resource "google_cloud_run_v2_service" "default" {
26
26
name = " cloudrun-service-healthcheck"
27
27
location = " us-central1"
28
28
29
+ deletion_protection = false # set to "true" in production
30
+
29
31
template {
30
32
containers {
31
33
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ resource "google_cloud_run_v2_service" "default" {
27
27
name = " cloudrun-service-healthcheck"
28
28
location = " us-central1"
29
29
30
+ deletion_protection = false # set to "true" in production
31
+
30
32
template {
31
33
containers {
32
34
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ resource "google_cloud_run_v2_service" "default" {
26
26
name = " cloud-run-srv"
27
27
location = " us-central1"
28
28
29
+ deletion_protection = false # set to "true" in production
30
+
29
31
template {
30
32
containers {
31
33
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -91,9 +91,11 @@ output "blurred_bucket_name" {
91
91
resource "google_cloud_run_v2_service" "default" {
92
92
name = " pubsub-tutorial"
93
93
location = " us-central1"
94
+
95
+ deletion_protection = false # set to "true" in production
96
+
94
97
template {
95
98
containers {
96
-
97
99
# Replace with newly created image gcr.io/<project_id>/pubsub
98
100
image = " us-docker.pkg.dev/cloudrun/container/hello"
99
101
env {
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ resource "google_cloud_run_v2_service" "default" {
30
30
name = " ingress-service"
31
31
location = " us-central1"
32
32
33
+ deletion_protection = false # set to "true" in production
34
+
33
35
# For valid annotation values and descriptions, see
34
36
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_v2_service#ingress
35
37
ingress = " INGRESS_TRAFFIC_INTERNAL_ONLY"
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ resource "google_cloud_run_v2_service" "public" {
22
22
name = " public-service"
23
23
location = " us-central1"
24
24
25
+ deletion_protection = false # set to "true" in production
26
+
25
27
template {
26
28
containers {
27
29
# TODO<developer>: replace this with a public service container
Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ resource "google_cloud_run_v2_service" "run_default" {
152
152
name = " myservice-run-app-${ local . run_regions [count . index ]} "
153
153
location = local. run_regions [count . index ]
154
154
155
+ deletion_protection = false # set to "true" in production
156
+
155
157
template {
156
158
containers {
157
159
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ resource "google_cloud_run_v2_service" "default" {
22
22
name = " cloudrun-srv"
23
23
location = " us-central1"
24
24
25
+ deletion_protection = false # set to "true" in production
26
+
25
27
template {
26
28
containers {
27
29
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ resource "google_cloud_run_v2_service" "default" {
40
40
name = " my-scheduled-service"
41
41
location = " us-central1"
42
42
43
+ deletion_protection = false # set to "true" in production
44
+
43
45
template {
44
46
containers {
45
47
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ resource "google_cloud_run_v2_service" "mounted_secret" {
65
65
location = " us-central1"
66
66
ingress = " INGRESS_TRAFFIC_ALL"
67
67
68
+ deletion_protection = false # set to "true" in production
69
+
68
70
template {
69
71
volumes {
70
72
name = " my-service-volume"
@@ -96,6 +98,8 @@ resource "google_cloud_run_v2_service" "env_variable_secret" {
96
98
location = " us-central1"
97
99
ingress = " INGRESS_TRAFFIC_ALL"
98
100
101
+ deletion_protection = false # set to "true" in production
102
+
99
103
template {
100
104
containers {
101
105
image = " us-docker.pkg.dev/cloudrun/container/hello"
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ resource "google_cloud_run_v2_service" "default" {
114
114
name = " cr-static-ip-service"
115
115
location = google_compute_subnetwork. default . region
116
116
117
+ deletion_protection = false # set to "true" in production
118
+
117
119
template {
118
120
containers {
119
121
# Replace with the URL of your container
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ resource "google_cloud_run_v2_service" "default" {
27
27
name = " graphviz-example"
28
28
location = " us-central1"
29
29
30
+ deletion_protection = false # set to "true" in production
31
+
30
32
template {
31
33
containers {
32
34
# Replace with the URL of your graphviz image
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ resource "google_cloud_run_v2_service" "default" {
20
20
name = " cloud-run-task-service"
21
21
location = " us-central1"
22
22
23
+ deletion_protection = false # set to "true" in production
24
+
23
25
template {
24
26
containers {
25
27
image = " us-docker.pkg.dev/cloudrun/container/hello"
You can’t perform that action at this time.
0 commit comments