Skip to content

Commit 59b26bf

Browse files
authored
Merge pull request #16 from mbolek/terraform_v011
Possible fix for Terraform v0.11(output to non-existing resource)
2 parents 7212e53 + 3db2cf9 commit 59b26bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ output "alb_id" {
1010

1111
output "alb_listener_https_id" {
1212
description = "The ID of the ALB Listener we created."
13-
value = "${aws_alb_listener.frontend_https.id}"
13+
value = "${element(concat(aws_alb_listener.frontend_https.*.id, list("")), 0)}"
1414
}
1515

1616
output "alb_listener_http_id" {
1717
description = "The ID of the ALB Listener we created."
18-
value = "${aws_alb_listener.frontend_http.id}"
18+
value = "${element(concat(aws_alb_listener.frontend_http.*.id, list("")), 0)}"
1919
}
2020

2121
output "alb_zone_id" {

0 commit comments

Comments
 (0)