@@ -5,22 +5,22 @@ output "dns_name" {
55
66output "http_tcp_listener_arns" {
77 description = " The ARN of the TCP and HTTP load balancer listeners created."
8- value = " ${ slice (concat (aws_lb_listener. frontend_http_tcp . * . arn , list (" " )), 0 , var. http_tcp_listeners_count )} "
8+ value = " ${ slice (concat (aws_lb_listener. frontend_http_tcp . * . arn , list (" " )), 0 , var. http_tcp_listeners_count - 1 )} "
99}
1010
1111output "http_tcp_listener_ids" {
1212 description = " The IDs of the TCP and HTTP load balancer listeners created."
13- value = " ${ slice (concat (aws_lb_listener. frontend_http_tcp . * . id , list (" " )), 0 , var. http_tcp_listeners_count )} "
13+ value = " ${ slice (concat (aws_lb_listener. frontend_http_tcp . * . id , list (" " )), 0 , var. http_tcp_listeners_count - 1 )} "
1414}
1515
1616output "https_listener_arns" {
1717 description = " The ARNs of the HTTPS load balancer listeners created."
18- value = " ${ slice (concat (aws_lb_listener. frontend_https . * . arn , list (" " )), 0 , var. https_listeners_count )} "
18+ value = " ${ slice (concat (aws_lb_listener. frontend_https . * . arn , list (" " )), 0 , var. https_listeners_count - 1 )} "
1919}
2020
2121output "https_listener_ids" {
2222 description = " The IDs of the load balancer listeners created."
23- value = " ${ slice (concat (aws_lb_listener. frontend_https . * . id , list (" " )), 0 , var. https_listeners_count )} "
23+ value = " ${ slice (concat (aws_lb_listener. frontend_https . * . id , list (" " )), 0 , var. https_listeners_count - 1 )} "
2424}
2525
2626output "load_balancer_arn_suffix" {
@@ -40,7 +40,7 @@ output "load_balancer_zone_id" {
4040
4141output "target_group_arns" {
4242 description = " ARNs of the target groups. Useful for passing to your Auto Scaling group."
43- value = " ${ slice (concat (aws_lb_target_group. main . * . arn , list (" " )), 0 , var. target_groups_count )} "
43+ value = " ${ slice (concat (aws_lb_target_group. main . * . arn , list (" " )), 0 , var. target_groups_count - 1 )} "
4444}
4545
4646output "target_group_arn_suffixes" {
@@ -50,5 +50,5 @@ output "target_group_arn_suffixes" {
5050
5151output "target_group_names" {
5252 description = " Name of the target group. Useful for passing to your CodeDeploy Deployment Group."
53- value = " ${ slice (concat (aws_lb_target_group. main . * . name , list (" " )), 0 , var. target_groups_count )} "
53+ value = " ${ slice (concat (aws_lb_target_group. main . * . name , list (" " )), 0 , var. target_groups_count - 1 )} "
5454}
0 commit comments