Skip to content

Commit

Permalink
Merge pull request #11521 from c2thorn/main (#771)
Browse files Browse the repository at this point in the history
Merge 6.0 branch into main

[upstream:33e0634155d56642a6c64174a611267eaaedf084]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 21, 2024
1 parent e887584 commit 6862c43
Show file tree
Hide file tree
Showing 28 changed files with 51 additions and 20 deletions.
4 changes: 3 additions & 1 deletion alloydb_backup_basic_test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ resource "google_alloydb_backup" "default" {
resource "google_alloydb_cluster" "default" {
cluster_id = "alloydb-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id
network_config {
network = data.google_compute_network.default.id
}
}

resource "google_alloydb_instance" "default" {
Expand Down
4 changes: 3 additions & 1 deletion alloydb_backup_full_test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ resource "google_alloydb_backup" "default" {
resource "google_alloydb_cluster" "default" {
cluster_id = "alloydb-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id
network_config {
network = data.google_compute_network.default.id
}
}

resource "google_alloydb_instance" "default" {
Expand Down
5 changes: 3 additions & 2 deletions alloydb_instance_basic_test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ resource "google_alloydb_instance" "default" {
resource "google_alloydb_cluster" "default" {
cluster_id = "alloydb-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id

network_config {
network = data.google_compute_network.default.id
}
initial_user {
password = "alloydb-cluster-${local.name_suffix}"
}
Expand Down
8 changes: 6 additions & 2 deletions alloydb_secondary_cluster_basic_test/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
resource "google_alloydb_cluster" "primary" {
cluster_id = "alloydb-primary-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id
network_config {
network = data.google_compute_network.default.id
}
}

resource "google_alloydb_instance" "primary" {
Expand All @@ -17,7 +19,9 @@ resource "google_alloydb_instance" "primary" {
resource "google_alloydb_cluster" "secondary" {
cluster_id = "alloydb-secondary-cluster-${local.name_suffix}"
location = "us-east1"
network = data.google_compute_network.default.id
network_config {
network = data.google_compute_network.default.id
}
cluster_type = "SECONDARY"

continuous_backup_config {
Expand Down
8 changes: 6 additions & 2 deletions alloydb_secondary_instance_basic_test/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
resource "google_alloydb_cluster" "primary" {
cluster_id = "alloydb-primary-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id
network_config {
network = data.google_compute_network.default.id
}
}

resource "google_alloydb_instance" "primary" {
Expand All @@ -17,7 +19,9 @@ resource "google_alloydb_instance" "primary" {
resource "google_alloydb_cluster" "secondary" {
cluster_id = "alloydb-secondary-cluster-${local.name_suffix}"
location = "us-east1"
network = data.google_compute_network.default.id
network_config {
network = data.google_compute_network.default.id
}
cluster_type = "SECONDARY"

continuous_backup_config {
Expand Down
5 changes: 3 additions & 2 deletions alloydb_user_builtin_test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ resource "google_alloydb_instance" "default" {
resource "google_alloydb_cluster" "default" {
cluster_id = "alloydb-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id

network_config {
network = data.google_compute_network.default.id
}
initial_user {
password = "cluster_secret-${local.name_suffix}"
}
Expand Down
5 changes: 3 additions & 2 deletions alloydb_user_iam_test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ resource "google_alloydb_instance" "default" {
resource "google_alloydb_cluster" "default" {
cluster_id = "alloydb-cluster-${local.name_suffix}"
location = "us-central1"
network = data.google_compute_network.default.id

network_config {
network = data.google_compute_network.default.id
}
initial_user {
password = "cluster_secret-${local.name_suffix}"
}
Expand Down
1 change: 1 addition & 0 deletions backend_service_external_iap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resource "google_compute_backend_service" "default" {
protocol = "HTTP"
load_balancing_scheme = "EXTERNAL"
iap {
enabled = true
oauth2_client_id = "abc"
oauth2_client_secret = "xyz"
}
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_job_basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_job" "default" {
name = "cloudrun-job-${local.name_suffix}"
location = "us-central1"
deletion_protection = false

template {
template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_job_directvpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_job" "default" {
name = "cloudrun-job-${local.name_suffix}"
location = "us-central1"
deletion_protection = false
launch_stage = "GA"
template {
template{
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_job_limits/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_job" "default" {
name = "cloudrun-job-${local.name_suffix}"
location = "us-central1"
deletion_protection = false

template {
template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_job_secret/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_job" "default" {
name = "cloudrun-job-${local.name_suffix}"
location = "us-central1"
deletion_protection = false

template {
template {
Expand Down
2 changes: 1 addition & 1 deletion cloudrunv2_job_sql/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "google_cloud_run_v2_job" "default" {
name = "cloudrun-job-${local.name_suffix}"
location = "us-central1"

deletion_protection = false
template {
template{
volumes {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_job_vpcaccess/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_job" "default" {
name = "cloudrun-job-${local.name_suffix}"
location = "us-central1"
deletion_protection = false

template {
template{
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false
ingress = "INGRESS_TRAFFIC_ALL"

template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_directvpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false
launch_stage = "GA"
template {
containers {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_limits/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false
ingress = "INGRESS_TRAFFIC_ALL"

template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_mount_gcs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"

location = "us-central1"
deletion_protection = false
launch_stage = "BETA"

template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_mount_nfs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"

location = "us-central1"
deletion_protection = false
ingress = "INGRESS_TRAFFIC_ALL"
launch_stage = "BETA"

Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_probes/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false

template {
containers {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_secret/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false
ingress = "INGRESS_TRAFFIC_ALL"

template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_sql/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false
ingress = "INGRESS_TRAFFIC_ALL"

template {
Expand Down
1 change: 1 addition & 0 deletions cloudrunv2_service_vpcaccess/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "google_cloud_run_v2_service" "default" {
name = "cloudrun-service-${local.name_suffix}"
location = "us-central1"
deletion_protection = false

template {
containers {
Expand Down
6 changes: 2 additions & 4 deletions redis_cluster_ha/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ resource "google_redis_cluster" "cluster-ha" {
redis_configs = {
maxmemory-policy = "volatile-ttl"
}
deletion_protection_enabled = false

zone_distribution_config {
mode = "MULTI_ZONE"
}
depends_on = [
google_network_connectivity_service_connection_policy.default
]

lifecycle {
prevent_destroy = false
}
}

resource "google_network_connectivity_service_connection_policy" "default" {
Expand Down
4 changes: 1 addition & 3 deletions redis_cluster_ha_single_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ resource "google_redis_cluster" "cluster-ha-single-zone" {
mode = "SINGLE_ZONE"
zone = "us-central1-f"
}
deletion_protection_enabled = false
depends_on = [
google_network_connectivity_service_connection_policy.default
]

lifecycle {
prevent_destroy = false
}
}

resource "google_network_connectivity_service_connection_policy" "default" {
Expand Down
1 change: 1 addition & 0 deletions region_backend_service_external_iap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resource "google_compute_region_backend_service" "default" {
protocol = "HTTP"
load_balancing_scheme = "EXTERNAL"
iap {
enabled = true
oauth2_client_id = "abc"
oauth2_client_secret = "xyz"
}
Expand Down
2 changes: 2 additions & 0 deletions vpc_access_connector/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ resource "google_vpc_access_connector" "connector" {
name = "vpc-con-${local.name_suffix}"
ip_cidr_range = "10.8.0.0/28"
network = "default-${local.name_suffix}"
min_instances = 2
max_instances = 3
}
2 changes: 2 additions & 0 deletions vpc_access_connector_shared_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ resource "google_vpc_access_connector" "connector" {
name = google_compute_subnetwork.custom_test.name
}
machine_type = "e2-standard-4"
min_instances = 2
max_instances = 3
}

resource "google_compute_subnetwork" "custom_test" {
Expand Down

0 comments on commit 6862c43

Please sign in to comment.