File tree Expand file tree Collapse file tree 16 files changed +37
-39
lines changed
mysql-backup-create-service-account
postgresql-backup-provided-service-account
postgresql-with-cross-region-failover Expand file tree Collapse file tree 16 files changed +37
-39
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Promote instance 2 as primary and change instance 1 as failover replica
2323``` diff
2424module "mssql2" {
2525 source = "terraform-google-modules/sql-db/google//modules/mssql"
26- version = "~> 21 .0"
26+ version = "~> 22 .0"
2727
2828- master_instance_name = module.mssql1.instance_name
2929
@@ -36,7 +36,7 @@ module "mssql2" {
3636``` diff
3737- module "mssql1" {
3838- source = "terraform-google-modules/sql-db/google//modules/mssql"
39- - version = "~> 20 .0"
39+ - version = "~> 22 .0"
4040- region = local.region_1
4141- name = "tf-mssql-public-1"
4242- random_instance_name = true
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ module "mssql1" {
5656
5757module "mssql2" {
5858 source = " terraform-google-modules/sql-db/google//modules/mssql"
59- version = " ~> 21 .0"
59+ version = " ~> 22 .0"
6060
6161 master_instance_name = module. mssql1 . instance_name
6262
Original file line number Diff line number Diff line change 1616
1717module "mssql" {
1818 source = " terraform-google-modules/sql-db/google//modules/mssql"
19- version = " ~> 21 .0"
19+ version = " ~> 22 .0"
2020
2121 name = var. name
2222 random_instance_name = true
Original file line number Diff line number Diff line change 1616
1717module "mysql" {
1818 source = " terraform-google-modules/sql-db/google//modules/mysql"
19- version = " ~> 21 .0"
19+ version = " ~> 22 .0"
2020
2121 name = " example-mysql-public"
2222 database_version = " MYSQL_8_0"
@@ -29,7 +29,7 @@ module "mysql" {
2929 ip_configuration = {
3030 ipv4_enabled = true
3131 private_network = null
32- require_ssl = true
32+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
3333 allocated_ip_range = null
3434 authorized_networks = []
3535 }
@@ -45,7 +45,7 @@ resource "google_storage_bucket" "backup" {
4545
4646module "backup" {
4747 source = " terraform-google-modules/sql-db/google//modules/backup"
48- version = " ~> 21 .0"
48+ version = " ~> 22 .0"
4949
5050 region = " us-central1"
5151 project_id = var. project_id
Original file line number Diff line number Diff line change 1717locals {
1818 read_replica_ip_configuration = {
1919 ipv4_enabled = true
20- require_ssl = false
20+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
2121 private_network = null
2222 allocated_ip_range = null
2323 authorized_networks = [
@@ -33,7 +33,7 @@ locals {
3333
3434module "mysql" {
3535 source = " terraform-google-modules/sql-db/google//modules/mysql"
36- version = " ~> 21 .0"
36+ version = " ~> 22 .0"
3737
3838 name = var. mysql_ha_name
3939 random_instance_name = true
@@ -59,7 +59,7 @@ module "mysql" {
5959
6060 ip_configuration = {
6161 ipv4_enabled = true
62- require_ssl = true
62+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
6363 private_network = null
6464 allocated_ip_range = null
6565 authorized_networks = [
Original file line number Diff line number Diff line change @@ -39,15 +39,16 @@ module "network-safer-mysql-simple" {
3939
4040module "private-service-access" {
4141 source = " terraform-google-modules/sql-db/google//modules/private_service_access"
42- version = " ~> 21 .0"
42+ version = " ~> 22 .0"
4343
44- project_id = var. project_id
45- vpc_network = module. network-safer-mysql-simple . network_name
44+ project_id = var. project_id
45+ vpc_network = module. network-safer-mysql-simple . network_name
46+ deletion_policy = " ABANDON"
4647}
4748
4849module "safer-mysql-db" {
4950 source = " terraform-google-modules/sql-db/google//modules/safer_mysql"
50- version = " ~> 21 .0"
51+ version = " ~> 22 .0"
5152
5253 name = var. db_name
5354 random_instance_name = true
Original file line number Diff line number Diff line change 1717locals {
1818 read_replica_ip_configuration = {
1919 ipv4_enabled = false
20- require_ssl = false
20+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
2121 psc_enabled = true
2222 psc_allowed_consumer_projects = [var.project_id]
2323 }
@@ -27,7 +27,7 @@ locals {
2727
2828module "mysql" {
2929 source = " terraform-google-modules/sql-db/google//modules/mysql"
30- version = " ~> 21 .0"
30+ version = " ~> 22 .0"
3131
3232 name = var. mysql_ha_name
3333 random_instance_name = true
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ resource "random_id" "name" {
2020
2121module "mysql-db" {
2222 source = " terraform-google-modules/sql-db/google//modules/mysql"
23- version = " ~> 21 .0"
23+ version = " ~> 22 .0"
2424
2525 name = var. db_name
2626 random_instance_name = true
@@ -35,7 +35,7 @@ module "mysql-db" {
3535 ip_configuration = {
3636 ipv4_enabled = true
3737 private_network = null
38- require_ssl = true
38+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
3939 allocated_ip_range = null
4040 authorized_networks = var.authorized_networks
4141 }
Original file line number Diff line number Diff line change 1616
1717module "postgresql" {
1818 source = " terraform-google-modules/sql-db/google//modules/postgresql"
19- version = " ~> 21 .0"
19+ version = " ~> 22 .0"
2020
2121 name = " example-postgres"
2222 random_instance_name = true
@@ -31,7 +31,7 @@ module "postgresql" {
3131 ip_configuration = {
3232 ipv4_enabled = true
3333 private_network = null
34- require_ssl = true
34+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
3535 allocated_ip_range = null
3636 authorized_networks = []
3737 }
@@ -56,7 +56,7 @@ resource "google_monitoring_notification_channel" "email" {
5656
5757module "backup" {
5858 source = " terraform-google-modules/sql-db/google//modules/backup"
59- version = " ~> 21 .0"
59+ version = " ~> 22 .0"
6060
6161 region = " us-central1"
6262 project_id = var. project_id
Original file line number Diff line number Diff line change 1818locals {
1919 read_replica_ip_configuration = {
2020 ipv4_enabled = true
21- require_ssl = false
22- ssl_mode = " ENCRYPTED_ONLY"
21+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED"
2322 private_network = null
2423 allocated_ip_range = null
2524 authorized_networks = [
@@ -33,7 +32,7 @@ locals {
3332
3433module "pg" {
3534 source = " terraform-google-modules/sql-db/google//modules/postgresql"
36- version = " ~> 21 .0"
35+ version = " ~> 22 .0"
3736
3837 name = var. pg_ha_name
3938 random_instance_name = true
@@ -59,7 +58,7 @@ module "pg" {
5958
6059 ip_configuration = {
6160 ipv4_enabled = true
62- require_ssl = true
61+ ssl_mode = " ALLOW_UNENCRYPTED_AND_ENCRYPTED "
6362 private_network = null
6463 allocated_ip_range = null
6564 authorized_networks = [
You can’t perform that action at this time.
0 commit comments