Skip to content

Commit

Permalink
Allow monitoring interval to be specified [ch18167] (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
darend authored Aug 24, 2018
1 parent 8dd70b4 commit 88db525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ resource "aws_db_instance" "replica" {
storage_type = "${var.storage_type}"
iops = "${var.storage_iops}"

monitoring_interval = "${var.monitoring_interval}"

port = 5432
kms_key_id = "${aws_kms_key.repica.arn}"
storage_encrypted = true
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ variable "storage_iops" {
default = 1000
}

variable "monitoring_interval" {
description = "The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60"
default = "0"
}

variable "cidr" {
description = "CIDR Block for the VPC"
default = "10.22.0.0/16"
Expand Down

0 comments on commit 88db525

Please sign in to comment.