Skip to content

Commit

Permalink
Merge pull request #20 from moctg/master
Browse files Browse the repository at this point in the history
Adding option to enable Performance Insights
  • Loading branch information
russwhelan authored Aug 30, 2018
2 parents 2989a8d + 3fdf37f commit 2bdd505
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ resource "aws_rds_cluster_parameter_group" "aurora_cluster_postgres96_parameter_
| monitoring_interval | The interval (seconds) between points when Enhanced Monitoring metrics are collected | string | `0` | no |
| name | Name given to DB subnet group | string | - | yes |
| password | Master DB password | string | - | yes |
| performance_insights_enabled | Whether to enable Performance Insights | string | `false` | no |
| port | The port on which to accept connections | string | `3306` | no |
| preferred_backup_window | When to perform DB backups | string | `02:00-03:00` | no |
| preferred_maintenance_window | When to perform DB maintenance | string | `sun:05:00-sun:06:00` | no |
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ resource "aws_rds_cluster_instance" "cluster_instance_0" {
monitoring_interval = "${var.monitoring_interval}"
auto_minor_version_upgrade = "${var.auto_minor_version_upgrade}"
promotion_tier = "0"
performance_insights_enabled = "${var.performance_insights_enabled}"

tags {
envname = "${var.envname}"
Expand All @@ -213,6 +214,7 @@ resource "aws_rds_cluster_instance" "cluster_instance_n" {
monitoring_interval = "${var.monitoring_interval}"
auto_minor_version_upgrade = "${var.auto_minor_version_upgrade}"
promotion_tier = "${count.index + 1}"
performance_insights_enabled = "${var.performance_insights_enabled}"

tags {
envname = "${var.envname}"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,9 @@ variable "replica_scale_out_cooldown" {
default = "300"
description = "Cooldown in seconds before allowing further scaling operations after a scale out"
}

variable "performance_insights_enabled" {
type = "string"
default = false
description = "Whether to enable Performance Insights"
}

0 comments on commit 2bdd505

Please sign in to comment.