Skip to content

Commit

Permalink
docs: ✏️ update examples for module update
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-williams committed Aug 30, 2024
1 parent 11ec178 commit b4477d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/rds-mariadb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/rds-mssql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/rds-mysql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 5 additions & 8 deletions examples/rds-postgresql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit b4477d8

Please sign in to comment.