Skip to content

Commit

Permalink
Work even when enhanced monitoring disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bashton committed Nov 15, 2017
1 parent 26ab17b commit 31ab20f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "aws_rds_cluster_instance" "cluster_instance_0" {
db_parameter_group_name = "${var.db_parameter_group_name}"
preferred_maintenance_window = "${var.preferred_maintenance_window}"
apply_immediately = "${var.apply_immediately}"
monitoring_role_arn = "${coalesce("${aws_iam_role.rds-enhanced-monitoring.arn}", "")}"
monitoring_role_arn = "${join("", aws_iam_role.rds-enhanced-monitoring.*.arn)}"
monitoring_interval = "${var.monitoring_interval}"
auto_minor_version_upgrade = "${var.auto_minor_version_upgrade}"
promotion_tier = "0"
Expand All @@ -94,8 +94,7 @@ resource "aws_rds_cluster_instance" "cluster_instance_n" {
db_parameter_group_name = "${var.db_parameter_group_name}"
preferred_maintenance_window = "${var.preferred_maintenance_window}"
apply_immediately = "${var.apply_immediately}"
monitoring_role_arn = "${coalesce("${aws_iam_role.rds-enhanced-monitoring.arn}", "")}"
monitoring_interval = "${var.monitoring_interval}"
monitoring_role_arn = "${join("", aws_iam_role.rds-enhanced-monitoring.*.arn)}"
monitoring_interval = "${var.monitoring_interval}"
auto_minor_version_upgrade = "${var.auto_minor_version_upgrade}"
promotion_tier = "${count.index + 1}"
Expand Down

0 comments on commit 31ab20f

Please sign in to comment.