Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions run/add_tag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {}

# Define the traffic split for each revision
Expand Down
3 changes: 3 additions & 0 deletions run/custom_domain_mapping/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
resource "google_cloud_run_v2_service" "default" {
name = "custom-domain"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {
containers {
image = "us-docker.pkg.dev/cloudrun/container/hello"
Expand Down
3 changes: 3 additions & 0 deletions run/pubsub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ resource "google_project_service" "cloudrun_api" {
resource "google_cloud_run_v2_service" "default" {
name = "pubsub-tutorial"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {
containers {
image = "us-docker.pkg.dev/cloudrun/container/hello" # Replace with newly created image gcr.io/<project_id>/pubsub
Expand Down
2 changes: 2 additions & 0 deletions run/remove_tag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {}

# Define the traffic split for each revision
Expand Down
2 changes: 2 additions & 0 deletions run/traffic_gradual_rollout/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {
containers {
# Image or image tag must be different from previous revision
Expand Down
2 changes: 2 additions & 0 deletions run/traffic_latest_revision/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {}

traffic {
Expand Down
2 changes: 2 additions & 0 deletions run/traffic_rollback/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {}

traffic {
Expand Down
2 changes: 2 additions & 0 deletions run/traffic_split/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {
containers {
image = "us-docker.pkg.dev/cloudrun/container/hello"
Expand Down
2 changes: 2 additions & 0 deletions run/traffic_split_tag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "google_cloud_run_v2_service" "default" {
name = "my-service"
location = "us-central1"

deletion_protection = false # set to true to prevent destruction of the resource

template {}

# Define the traffic split for each revision
Expand Down
Loading