From e0771904076096ddf009744c5fc2d2aa7907d5d6 Mon Sep 17 00:00:00 2001 From: Rafael Felix Correa Date: Mon, 4 Feb 2019 16:08:50 +0100 Subject: [PATCH] cloudwatch output can be empty (since its optional) --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 1124cde..a3694d1 100644 --- a/outputs.tf +++ b/outputs.tf @@ -25,5 +25,5 @@ output "role_name" { output "cloudwatch_rule_arn" { description = "The ARN of the Cloudwatch rule" - value = "${element(concat(aws_cloudwatch_event_rule.rule.*.arn), 0)}" + value = "${element(concat(aws_cloudwatch_event_rule.rule.*.arn, list("")), 0)}" } \ No newline at end of file