From 4907880442761f3ffcbb17128a233f675ec85f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 30 Jul 2019 00:30:54 -0400 Subject: [PATCH] can't calculate length of elbs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- modules/aws-eb-env/main.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/aws-eb-env/main.tf b/modules/aws-eb-env/main.tf index 22aa520..6966ae2 100644 --- a/modules/aws-eb-env/main.tf +++ b/modules/aws-eb-env/main.tf @@ -79,8 +79,7 @@ module "eb_environment" { /* need to get the full DNS entries for the ELBs */ data "aws_elb" "main" { - name = "${element(module.eb_environment.elb_load_balancers, count.index)}" - count = "${length(module.eb_environment.elb_load_balancers)}" + name = "${module.eb_environment.elb_load_balancers[0]}" } resource "gandi_zonerecord" "main" {