From 1cd486ec8bf73c257728ca4b58d4389f28f2e7db Mon Sep 17 00:00:00 2001 From: Sumit Sarkar Date: Wed, 24 Jul 2019 13:01:04 +0530 Subject: [PATCH] FIX: https://github.com/hashicorp/terraform/issues/12570 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 895bc09..678dc7f 100644 --- a/main.tf +++ b/main.tf @@ -87,7 +87,7 @@ JSON } data "template_file" "_environment_var" { - count = length(keys(var.environment_vars)) + count = length(keys(var.environment_vars)) > 0 ? length(keys(var.environment_vars)) : 0 template = <