Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit eccc09e

Browse files
Merge pull request #155 from sherzberg/rds-allow-major-upgrade
variable to override allow_major_version_upgrade
2 parents 5fa6c19 + bc272a7 commit eccc09e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

rds/main.tf

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ variable "apply_immediately" {
6666
default = true
6767
}
6868

69+
variable "allow_major_version_upgrade" {
70+
description = "If true, major version upgrades are allowed"
71+
default = false
72+
}
73+
6974
variable "instance_class" {
7075
description = "Underlying instance type"
7176
default = "db.t2.micro"
@@ -148,12 +153,13 @@ resource "aws_db_instance" "main" {
148153
identifier = "${var.name}"
149154

150155
# Database
151-
engine = "${var.engine}"
152-
engine_version = "${var.engine_version}"
153-
username = "${coalesce(var.username, var.name)}"
154-
password = "${var.password}"
155-
multi_az = "${var.multi_az}"
156-
name = "${coalesce(var.database, var.name)}"
156+
engine = "${var.engine}"
157+
engine_version = "${var.engine_version}"
158+
allow_major_version_upgrade = "${var.allow_major_version_upgrade}"
159+
username = "${coalesce(var.username, var.name)}"
160+
password = "${var.password}"
161+
multi_az = "${var.multi_az}"
162+
name = "${coalesce(var.database, var.name)}"
157163

158164
# Backups / maintenance
159165
backup_retention_period = "${var.backup_retention_period}"

0 commit comments

Comments
 (0)