Skip to content

Commit

Permalink
Merge pull request #22 from DNXLabs/feature/include_new_params
Browse files Browse the repository at this point in the history
Include auto minor version param
  • Loading branch information
brunodasilvalenga authored Jul 12, 2022
2 parents e87b6a1 + cd3a953 commit 51dd490
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | <pre>list(object({<br> security_group_id = string<br> description = string<br> name = string<br> }))</pre> | `[]` | 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 |
Expand Down
6 changes: 6 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51dd490

Please sign in to comment.