From 8fe5725620dca50d53350e04e6dee3efbf9d690d Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Tue, 28 May 2019 16:19:40 +0200 Subject: [PATCH] terraform 0.12 upgrade fixes --- modules/db_instance/main.tf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/db_instance/main.tf b/modules/db_instance/main.tf index 41b14f93..79fef98c 100644 --- a/modules/db_instance/main.tf +++ b/modules/db_instance/main.tf @@ -56,10 +56,7 @@ resource "aws_db_instance" "this" { iops = var.iops publicly_accessible = var.publicly_accessible monitoring_interval = var.monitoring_interval - monitoring_role_arn = coalesce( - var.monitoring_role_arn, - join("", aws_iam_role.enhanced_monitoring.*.arn), - ) + monitoring_role_arn = var.monitoring_role_arn != "" ? var.monitoring_role_arn : join("", aws_iam_role.enhanced_monitoring.*.arn) != "" ? join("", aws_iam_role.enhanced_monitoring.*.arn) : "" allow_major_version_upgrade = var.allow_major_version_upgrade auto_minor_version_upgrade = var.auto_minor_version_upgrade