Skip to content

Commit

Permalink
can't calculate length of elbs
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Jul 30, 2019
1 parent e4bb7f6 commit 4907880
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/aws-eb-env/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 4907880

Please sign in to comment.