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" {
8080 value = " ${ compact (concat (aws_lb_target_group. application-http . * . arn ,aws_lb_target_group. application-https . * . arn ,aws_lb_target_group. network . * . arn ))} "
8181}
8282
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+
84100# arn_suffix
85101# name
86102
Original file line number Diff line number Diff line change @@ -84,8 +84,22 @@ output "target_group_arns" {
8484 description = " ARNs of all the target groups. Useful for passing to your Auto Scaling group module."
8585 value = " ${ module . lb . target_group_arns } "
8686}
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+ }
89103# arn_suffix
90104# name
91105
You can’t perform that action at this time.
0 commit comments