From b364a759de654a51c0d53d4902c2876f7dfbcca9 Mon Sep 17 00:00:00 2001 From: Dan Souza Date: Wed, 24 Jun 2020 14:43:23 -0400 Subject: [PATCH] Adds parameter group family as a settable variable --- README.md | 1 + main.tf | 2 +- variables.tf | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c23b72..b537b7d 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ This terraform module will create: | instance\_class | Instance class | `string` | `"db.m4.large"` | no | | maintenance\_window | Maintenance window | `string` | `"sun:04:32-sun:05:02"` | no | | max\_allocated\_storage | Max allocate storage | `number` | `1000` | no | +| parameter\_group\_family | The family of the DB parameter group | `string` | `"postgres12"` | no | | parameter\_group\_name | The name of the rds parameter group | `string` | `"rds-postgres-pg"` | no | | postgres\_name | The name of the postgres instance | `string` | `"tamr_rds_db"` | no | | security\_group\_name | Name for the security group for the rds instance | `string` | `"tamr_rds_sg"` | no | diff --git a/main.tf b/main.tf index 5432a5e..ded92a8 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,6 @@ resource "aws_db_parameter_group" "rds_postgres_pg" { name = var.parameter_group_name - family = "postgres9.6" + family = var.parameter_group_family description = "TAMR RDS parameter group" tags = var.additional_tags } diff --git a/variables.tf b/variables.tf index abfe307..ef66836 100644 --- a/variables.tf +++ b/variables.tf @@ -130,5 +130,10 @@ variable "engine_version" { description = "Version of RDS Postgres" type = string default = "12.3" +} +variable "parameter_group_family" { + description = "The family of the DB parameter group" + type = string + default = "postgres12" }