File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,23 @@ output "target_group_arns" {
80
80
value = " ${ compact (concat (aws_lb_target_group. application-http . * . arn ,aws_lb_target_group. application-https . * . arn ,aws_lb_target_group. network . * . arn ))} "
81
81
}
82
82
83
- # id
83
+ output "target_group_http_ids" {
84
+ description = " IDs of the HTTP target groups"
85
+ value = " ${ aws_lb_target_group . application-http . * . id } "
86
+ }
87
+ output "target_group_https_ids" {
88
+ description = " IDs of the HTTPS target groups"
89
+ value = " ${ aws_lb_target_group . application-https . * . id } "
90
+ }
91
+ output "target_group_tcp_ids" {
92
+ description = " IDs of the TCP target groups"
93
+ value = " ${ aws_lb_target_group . network . * . id } "
94
+ }
95
+ output "target_group_ids" {
96
+ description = " IDs of all the target groups"
97
+ value = " ${ compact (concat (aws_lb_target_group. application-http . * . id ,aws_lb_target_group. application-https . * . id ,aws_lb_target_group. network . * . id ))} "
98
+ }
99
+
84
100
# arn_suffix
85
101
# name
86
102
Original file line number Diff line number Diff line change @@ -84,8 +84,22 @@ output "target_group_arns" {
84
84
description = " ARNs of all the target groups. Useful for passing to your Auto Scaling group module."
85
85
value = " ${ module . lb . target_group_arns } "
86
86
}
87
-
88
- # id
87
+ output "target_group_http_ids" {
88
+ description = " IDs of the HTTP target groups"
89
+ value = " ${ module . lb . target_group_http_ids } "
90
+ }
91
+ output "target_group_https_ids" {
92
+ description = " IDs of the HTTPS target groups"
93
+ value = " ${ module . lb . target_group_https_ids } "
94
+ }
95
+ output "target_group_tcp_ids" {
96
+ description = " IDs of the TCP target groups"
97
+ value = " ${ module . lb . target_group_tcp_ids } "
98
+ }
99
+ output "target_group_ids" {
100
+ description = " IDs of all the target groups"
101
+ value = " ${ module . lb . target_group_ids } "
102
+ }
89
103
# arn_suffix
90
104
# name
91
105
You can’t perform that action at this time.
0 commit comments