|
3 | 3 | // |
4 | 4 | output "arn" { |
5 | 5 | description = "ARN of the LB itself. Useful for debug output, for example when attaching a WAF." |
6 | | - |
7 | | - #value = "${element(concat(aws_lb.this.*.arn, list("")), 0)}" |
8 | | - value = "${element(concat(aws_lb.application.*.arn, aws_lb.network.*.arn, list("")), 0)}" |
| 6 | + value = "${element(concat(aws_lb.application.*.arn, aws_lb.network.*.arn, list("")), 0)}" |
9 | 7 | } |
10 | 8 |
|
11 | 9 | output "dns_name" { |
12 | 10 | description = "The DNS name of the LB presumably to be used with a friendlier CNAME." |
13 | | - |
14 | | - #value = "${element(concat(aws_lb.this.*.dns_name, list("")), 0)}" |
15 | | - value = "${element(concat(aws_lb.application.*.dns_name, aws_lb.network.*.dns_name, list("")), 0)}" |
| 11 | + value = "${element(concat(aws_lb.application.*.dns_name, aws_lb.network.*.dns_name, list("")), 0)}" |
16 | 12 | } |
17 | 13 |
|
18 | 14 | output "id" { |
19 | 15 | description = "The ID of the LB we created." |
20 | | - |
21 | | - #value = "${element(concat(aws_lb.this.*.id, list("")), 0)}" |
22 | | - value = "${element(concat(aws_lb.application.*.id, aws_lb.network.*.id, list("")), 0)}" |
| 16 | + value = "${element(concat(aws_lb.application.*.id, aws_lb.network.*.id, list("")), 0)}" |
23 | 17 | } |
24 | 18 |
|
25 | 19 | output "zone_id" { |
26 | 20 | description = "The zone_id of the LB to assist with creating DNS records." |
27 | | - |
28 | | - #value = "${element(concat(aws_lb.this.*.zone_id, list("")), 0)}" |
29 | | - value = "${element(concat(aws_lb.application.*.zone_id, aws_lb.network.*.zone_id, list("")), 0)}" |
| 21 | + value = "${element(concat(aws_lb.application.*.zone_id, aws_lb.network.*.zone_id, list("")), 0)}" |
30 | 22 | } |
31 | 23 |
|
32 | 24 | # arn_suffix |
|
0 commit comments