File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed
jobs_execute_jobs_on_schedule
jobs_task_parallelism_create Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ resource "google_project_service" "cloudrun_api" {
2727# Create basic Cloud Run Job using sample container image
2828# [START cloudrun_jobs_create]
2929resource "google_cloud_run_v2_job" "default" {
30- provider = google- beta
3130 name = " cloud-run-job"
3231 location = " us-central1"
33- launch_stage = " BETA"
32+
33+ deletion_protection = false # set to "true" in production
3434
3535 template {
3636 template {
Original file line number Diff line number Diff line change @@ -67,11 +67,10 @@ resource "google_project_iam_binding" "token_creator_binding" {
6767
6868# Cloud Run Job
6969resource "google_cloud_run_v2_job" "default" {
70- provider = google- beta
7170 name = " cloud-run-job"
7271 location = " us-central1"
73- launch_stage = " BETA "
74- project = data . google_project . project . project_id
72+
73+ deletion_protection = false # set to "true" in production
7574
7675 template {
7776 template {
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ resource "google_project_service" "cloudrun_api" {
2828resource "google_cloud_run_v2_job" "default" {
2929 name = " cloud-run-job-retries"
3030 location = " us-central1"
31- launch_stage = " BETA"
31+
32+ deletion_protection = false # set to "true" in production
3233
3334 template {
3435 template {
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ resource "google_project_service" "cloudrun_api" {
2828resource "google_cloud_run_v2_job" "default" {
2929 name = " cloud-run-job-parallelism"
3030 location = " us-central1"
31- launch_stage = " BETA"
31+
32+ deletion_protection = false # set to "true" in production
3233
3334 template {
3435 task_count = 3
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ resource "google_project_service" "cloudrun_api" {
2828resource "google_cloud_run_v2_job" "default" {
2929 name = " cloud-run-job-timeout"
3030 location = " us-central1"
31- launch_stage = " BETA"
31+
32+ deletion_protection = false # set to "true" in production
3233
3334 template {
3435 template {
You can’t perform that action at this time.
0 commit comments