Skip to content

Commit

Permalink
terraform 0.12 upgrade fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene authored and jornjambers committed May 28, 2019
1 parent 980baf8 commit 8fe5725
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/db_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fe5725

Please sign in to comment.