Skip to content

Commit bb7be8c

Browse files
committed
rebasing examples folder on master
1 parent 5ea9c39 commit bb7be8c

File tree

16 files changed

+37
-39
lines changed

16 files changed

+37
-39
lines changed

examples/mssql-failover-replica/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Promote instance 2 as primary and change instance 1 as failover replica
2323
```diff
2424
module "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

examples/mssql-failover-replica/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module "mssql1" {
5656

5757
module "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

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 = "~> 21.0"
19+
version = "~> 22.0"
2020

2121
name = var.name
2222
random_instance_name = true

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

Lines changed: 3 additions & 3 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 = "~> 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

4646
module "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

examples/mysql-ha/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
locals {
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

3434
module "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 = [

examples/mysql-private/main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@ 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 = "~> 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

4849
module "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

examples/mysql-psc/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
locals {
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

2828
module "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

examples/mysql-public/main.tf

Lines changed: 2 additions & 2 deletions
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 = "~> 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
}

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

Lines changed: 3 additions & 3 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 = "~> 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

5757
module "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

examples/postgresql-ha/main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
locals {
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

3433
module "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 = [

0 commit comments

Comments
 (0)