can't calculate length of elbs

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-07-30 00:30:54 -04:00
parent e4bb7f6208
commit 4907880442
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -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" {