Skip to content

Commit c02241c

Browse files
authored
Merge pull request #5 from souza-dan/settable-version-part-2
DEV-13953 - Adds parameter group family as a settable variable
2 parents b18cf71 + b364a75 commit c02241c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ This terraform module will create:
6161
| instance\_class | Instance class | `string` | `"db.m4.large"` | no |
6262
| maintenance\_window | Maintenance window | `string` | `"sun:04:32-sun:05:02"` | no |
6363
| max\_allocated\_storage | Max allocate storage | `number` | `1000` | no |
64+
| parameter\_group\_family | The family of the DB parameter group | `string` | `"postgres12"` | no |
6465
| parameter\_group\_name | The name of the rds parameter group | `string` | `"rds-postgres-pg"` | no |
6566
| postgres\_name | The name of the postgres instance | `string` | `"tamr_rds_db"` | no |
6667
| security\_group\_name | Name for the security group for the rds instance | `string` | `"tamr_rds_sg"` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_db_parameter_group" "rds_postgres_pg" {
22
name = var.parameter_group_name
3-
family = "postgres9.6"
3+
family = var.parameter_group_family
44
description = "TAMR RDS parameter group"
55
tags = var.additional_tags
66
}

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,10 @@ variable "engine_version" {
130130
description = "Version of RDS Postgres"
131131
type = string
132132
default = "12.3"
133+
}
133134

135+
variable "parameter_group_family" {
136+
description = "The family of the DB parameter group"
137+
type = string
138+
default = "postgres12"
134139
}

0 commit comments

Comments
 (0)