Skip to content

Commit

Permalink
Merge pull request #51 from Crown-Commercial-Service/allow-major-vers…
Browse files Browse the repository at this point in the history
…ion-increase

Optionally allow RDS major version increases
  • Loading branch information
ghill95 authored Mar 18, 2024
2 parents 7985262 + 4b3ca16 commit ce71904
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resource-groups/rds-postgres/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "aws_db_subnet_group" "subnet_group" {
resource "aws_db_instance" "db" {
allocated_storage = var.allocated_storage_gb
auto_minor_version_upgrade = false
allow_major_version_upgrade = false
allow_major_version_upgrade = var.allow_major_version_upgrade
apply_immediately = var.apply_immediately
backup_retention_period = var.backup_retention_period_days
db_name = var.db_name # NB Postgres db names use underscores, not hyphens
Expand Down
6 changes: 6 additions & 0 deletions resource-groups/rds-postgres/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ variable "allocated_storage_gb" {
default = 10
}

variable "allow_major_version_upgrade" {
type = bool
description = "Opt to allow major version upgrade (defaults to false"
default = false
}

variable "apply_immediately" {
type = bool
description = "Whether to apply changes immediately or in the next maintenance window"
Expand Down

0 comments on commit ce71904

Please sign in to comment.