Skip to content

Commit

Permalink
feat: add support for enhanced monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
argoyle committed Dec 5, 2021
1 parent b0c67f9 commit 84c09a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ resource "aws_db_instance" "default" {
name = var.db_name
username = var.master_username
password = local.password
monitoring_interval = var.enhanced_monitoring ? 60 : 0
maintenance_window = "mon:02:00-mon:03:30"
backup_window = "03:30-05:00"
backup_retention_period = 14
Expand Down
6 changes: 6 additions & 0 deletions vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ variable "apply_immediately" {
default = false
description = "Apply changes immediately or wait for next maintenance window"
}

variable "enhanced_monitoring" {
type = bool
default = false
description = "Enable enhanced monitor on the instance"
}

0 comments on commit 84c09a9

Please sign in to comment.