From b4477d8c3875e037cc74d1f10ecb2e22f8daf2e4 Mon Sep 17 00:00:00 2001 From: sj-williams Date: Fri, 30 Aug 2024 12:38:08 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20update=20examples?= =?UTF-8?q?=20for=20module=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit relates to ministryofjustice/cloud-platform#6068 --- examples/rds-mariadb.tf | 2 +- examples/rds-mssql.tf | 2 +- examples/rds-mysql.tf | 2 +- examples/rds-postgresql.tf | 13 +++++-------- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/examples/rds-mariadb.tf b/examples/rds-mariadb.tf index 9395e45..1aed6d4 100644 --- a/examples/rds-mariadb.tf +++ b/examples/rds-mariadb.tf @@ -5,7 +5,7 @@ * */ module "rds_mariadb" { - source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.0.0" + source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.1.0" # VPC configuration vpc_name = var.vpc_name diff --git a/examples/rds-mssql.tf b/examples/rds-mssql.tf index a2c09c6..ef0dc65 100644 --- a/examples/rds-mssql.tf +++ b/examples/rds-mssql.tf @@ -5,7 +5,7 @@ * */ module "rds_mssql" { - source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.0.0" + source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.1.0" # VPC configuration vpc_name = var.vpc_name diff --git a/examples/rds-mysql.tf b/examples/rds-mysql.tf index de2624b..03693f5 100644 --- a/examples/rds-mysql.tf +++ b/examples/rds-mysql.tf @@ -5,7 +5,7 @@ * */ module "rds_mysql" { - source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.0.0" + source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.1.0" # VPC configuration vpc_name = var.vpc_name diff --git a/examples/rds-postgresql.tf b/examples/rds-postgresql.tf index 02eb995..4190163 100644 --- a/examples/rds-postgresql.tf +++ b/examples/rds-postgresql.tf @@ -5,7 +5,7 @@ * */ module "rds" { - source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.0.0" + source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.1.0" # VPC configuration vpc_name = var.vpc_name @@ -20,7 +20,7 @@ module "rds" { # PostgreSQL specifics db_engine = "postgres" - db_engine_version = "16" + db_engine_version = "16" # If you are managing minor version updates, refer to user guide: https://user-guide.cloud-platform.service.justice.gov.uk/documentation/deploying-an-app/relational-databases/upgrade.html#upgrading-a-database-version-or-changing-the-instance-type rds_family = "postgres16" db_instance_class = "db.t4g.micro" @@ -41,7 +41,7 @@ module "rds" { module "read_replica" { # default off count = 0 - source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.0.0" + source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=7.1.0" vpc_name = var.vpc_name @@ -59,14 +59,11 @@ module "read_replica" { # PostgreSQL specifics db_engine = "postgres" - db_engine_version = "14.7" - rds_family = "postgres14" + db_engine_version = "16" # If you are managing minor version updates, refer to user guide: https://user-guide.cloud-platform.service.justice.gov.uk/documentation/deploying-an-app/relational-databases/upgrade.html#upgrading-a-database-version-or-changing-the-instance-type + rds_family = "postgres16" db_instance_class = "db.t4g.micro" # It is mandatory to set the below values to create read replica instance - # Set the database_name of the source db - db_name = null # "db_name": conflicts with replicate_source_db - # Set the db_identifier of the source db replicate_source_db = module.rds.db_identifier