Skip to content

Commit cf5f184

Browse files
authored
feat(TPG>5.38)!: added deletion_policy to private service access sub-module and promoted to GA provider (#620)
1 parent 7310051 commit cf5f184

File tree

26 files changed

+177
-36
lines changed

26 files changed

+177
-36
lines changed

examples/mssql-failover-replica/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ locals {
2424

2525
module "mssql1" {
2626
source = "terraform-google-modules/sql-db/google//modules/mssql"
27-
version = "~> 20.0"
27+
version = "~> 21.0"
2828

2929
region = local.region_1
3030

@@ -36,7 +36,7 @@ module "mssql1" {
3636

3737
deletion_protection = false
3838

39-
tier = "db-custom-10-65536"
39+
tier = "db-custom-4-15360"
4040

4141
ip_configuration = {
4242
ipv4_enabled = false
@@ -56,7 +56,7 @@ module "mssql1" {
5656

5757
module "mssql2" {
5858
source = "terraform-google-modules/sql-db/google//modules/mssql"
59-
version = "~> 20.0"
59+
version = "~> 21.0"
6060

6161
master_instance_name = module.mssql1.instance_name
6262

@@ -70,7 +70,7 @@ module "mssql2" {
7070

7171
deletion_protection = false
7272

73-
tier = "db-custom-10-65536"
73+
tier = "db-custom-4-15360"
7474

7575
ip_configuration = {
7676
ipv4_enabled = false

examples/mssql-public/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
module "mssql" {
1818
source = "terraform-google-modules/sql-db/google//modules/mssql"
19-
version = "~> 20.0"
19+
version = "~> 21.0"
2020

2121
name = var.name
2222
random_instance_name = true

examples/mysql-backup-create-service-account/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
module "mysql" {
1818
source = "terraform-google-modules/sql-db/google//modules/mysql"
19-
version = "~> 20.0"
19+
version = "~> 21.0"
2020

2121
name = "example-mysql-public"
2222
database_version = "MYSQL_8_0"
@@ -45,7 +45,7 @@ resource "google_storage_bucket" "backup" {
4545

4646
module "backup" {
4747
source = "terraform-google-modules/sql-db/google//modules/backup"
48-
version = "~> 20.0"
48+
version = "~> 21.0"
4949

5050
region = "us-central1"
5151
project_id = var.project_id

examples/mysql-ha/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ locals {
3333

3434
module "mysql" {
3535
source = "terraform-google-modules/sql-db/google//modules/mysql"
36-
version = "~> 20.0"
36+
version = "~> 21.0"
3737

3838
name = var.mysql_ha_name
3939
random_instance_name = true

examples/mysql-private/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ module "network-safer-mysql-simple" {
3939

4040
module "private-service-access" {
4141
source = "terraform-google-modules/sql-db/google//modules/private_service_access"
42-
version = "~> 20.0"
42+
version = "~> 21.0"
4343

4444
project_id = var.project_id
4545
vpc_network = module.network-safer-mysql-simple.network_name
4646
}
4747

4848
module "safer-mysql-db" {
4949
source = "terraform-google-modules/sql-db/google//modules/safer_mysql"
50-
version = "~> 20.0"
50+
version = "~> 21.0"
5151

5252
name = var.db_name
5353
random_instance_name = true

examples/mysql-psc/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ locals {
2727

2828
module "mysql" {
2929
source = "terraform-google-modules/sql-db/google//modules/mysql"
30-
version = "~> 20.0"
30+
version = "~> 21.0"
3131

3232
name = var.mysql_ha_name
3333
random_instance_name = true
@@ -38,7 +38,7 @@ module "mysql" {
3838
deletion_protection = false
3939

4040
// Master configurations
41-
tier = "db-custom-4-15360"
41+
tier = "db-custom-2-7680"
4242
zone = "us-central1-c"
4343
availability_type = "REGIONAL"
4444
maintenance_window_day = 7
@@ -82,7 +82,7 @@ module "mysql" {
8282
name = "0"
8383
zone = "us-central1-a"
8484
availability_type = "REGIONAL"
85-
tier = "db-custom-4-15360"
85+
tier = "db-custom-2-7680"
8686
ip_configuration = local.read_replica_ip_configuration
8787
database_flags = [{ name = "long_query_time", value = 1 }]
8888
disk_type = "PD_SSD"

examples/mysql-public/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resource "random_id" "name" {
2020

2121
module "mysql-db" {
2222
source = "terraform-google-modules/sql-db/google//modules/mysql"
23-
version = "~> 20.0"
23+
version = "~> 21.0"
2424

2525
name = var.db_name
2626
random_instance_name = true

examples/postgresql-backup-provided-service-account/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
module "postgresql" {
1818
source = "terraform-google-modules/sql-db/google//modules/postgresql"
19-
version = "~> 20.0"
19+
version = "~> 21.0"
2020

2121
name = "example-postgres"
2222
random_instance_name = true
@@ -56,7 +56,7 @@ resource "google_monitoring_notification_channel" "email" {
5656

5757
module "backup" {
5858
source = "terraform-google-modules/sql-db/google//modules/backup"
59-
version = "~> 20.0"
59+
version = "~> 21.0"
6060

6161
region = "us-central1"
6262
project_id = var.project_id

examples/postgresql-ha/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ locals {
3333

3434
module "pg" {
3535
source = "terraform-google-modules/sql-db/google//modules/postgresql"
36-
version = "~> 20.0"
36+
version = "~> 21.0"
3737

3838
name = var.pg_ha_name
3939
random_instance_name = true

examples/postgresql-psc/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ locals {
2727

2828
module "pg" {
2929
source = "terraform-google-modules/sql-db/google//modules/postgresql"
30-
version = "~> 20.0"
30+
version = "~> 21.0"
3131

3232
name = var.pg_psc_name
3333
random_instance_name = true
@@ -36,7 +36,7 @@ module "pg" {
3636
region = "us-central1"
3737

3838
// Master configurations
39-
tier = "db-custom-16-61440"
39+
tier = "db-custom-2-7680"
4040
zone = "us-central1-c"
4141
availability_type = "REGIONAL"
4242
maintenance_window_day = 7
@@ -78,7 +78,7 @@ module "pg" {
7878
name = "0"
7979
zone = "us-central1-a"
8080
availability_type = "REGIONAL"
81-
tier = "db-custom-16-61440"
81+
tier = "db-custom-2-7680"
8282
ip_configuration = local.read_replica_ip_configuration
8383
database_flags = [{ name = "autovacuum", value = "off" }]
8484
disk_type = "PD_SSD"

0 commit comments

Comments
 (0)