diff --git a/README.md b/README.md index c43c7b9..e253102 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ | allow\_cidrs | List of CIDRs to allow connection to this DB | `list(string)` | `[]` | no | | allow\_security\_group\_ids | List of Security Group IDs to allow connection to this DB |
list(object({| `[]` | no | | apply\_immediately | Apply changes immediately or wait for the maintainance window | `bool` | `true` | no | +| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | | backup | Enables automatic backup with AWS Backup | `bool` | n/a | yes | | backup\_window | (RDS Only) The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | `"03:00-03:30"` | no | | cluster\_parameters | A list of Cluster parameters (map) to apply | `list(map(string))` | `[]` | no | diff --git a/_variables.tf b/_variables.tf index d4b1bd8..552eb79 100644 --- a/_variables.tf +++ b/_variables.tf @@ -340,3 +340,9 @@ variable "preferred_maintenance_window" { description = "(Aurora Only) The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30" default = "Sun:04:00-Sun:05:00" } + +variable "auto_minor_version_upgrade" { + type = bool + description = "Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window" + default = true +} \ No newline at end of file diff --git a/rds.tf b/rds.tf index 2a8d6ea..057d156 100644 --- a/rds.tf +++ b/rds.tf @@ -37,7 +37,7 @@ resource "aws_db_instance" "rds_db" { maintenance_window = var.maintenance_window backup_window = var.backup_window final_snapshot_identifier = var.final_snapshot_identifier == "" ? "${var.environment_name}-${var.name}-final-snapshot" : var.final_snapshot_identifier - + auto_minor_version_upgrade = var.auto_minor_version_upgrade tags = { Backup = var.backup Identifier = var.identifier == "" ? "${var.environment_name}-${var.name}" : var.identifier
security_group_id = string
description = string
name = string
}))