Skip to content

Commit 5f81a1a

Browse files
committed
Adds a variable "engine_version" to set the version of RDS
1 parent 3eecf04 commit 5f81a1a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ This terraform module will create:
5656
| backup\_retention\_period | Backup retention period in days | `number` | `14` | no |
5757
| backup\_window | Backup window | `string` | `"03:29-03:59"` | no |
5858
| copy\_tags\_to\_snapshot | Copy tags to snapshots | `bool` | `true` | no |
59+
| engine\_version | Version of RDS Postgres | `string` | `"12.3"` | no |
5960
| identifier\_prefix | Identifier prefix for the RDS instance | `string` | `"tamr-rds-"` | no |
6061
| instance\_class | Instance class | `string` | `"db.m4.large"` | no |
6162
| maintenance\_window | Maintenance window | `string` | `"sun:04:32-sun:05:02"` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "aws_db_instance" "rds_postgres" {
2525
storage_encrypted = true
2626

2727
engine = "postgres"
28-
engine_version = "9.6"
28+
engine_version = var.engine_version
2929
instance_class = var.instance_class
3030

3131
username = var.username

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,10 @@ variable "additional_cidrs" {
125125
type = list(string)
126126
default = []
127127
}
128+
129+
variable "engine_version" {
130+
description = "Version of RDS Postgres"
131+
type = string
132+
default = "12.3"
133+
134+
}

0 commit comments

Comments
 (0)