From c2a3dc5fd6bad148d8118939e24aa14d5b994398 Mon Sep 17 00:00:00 2001 From: Carter Jones Date: Tue, 24 Aug 2021 15:34:31 -0700 Subject: [PATCH] export the target group arn --- README.md | 1 + outputs.tf | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 31c9a8f..8c10e36 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,7 @@ No modules. | [nlb\_dns\_name](#output\_nlb\_dns\_name) | DNS name of the NLB. | | [nlb\_ips](#output\_nlb\_ips) | List of IP addresses associated with the NLB. | | [nlb\_listener\_arn](#output\_nlb\_listener\_arn) | The ARN associated with the listener on the NLB. | +| [nlb\_target\_group\_arn](#output\_nlb\_target\_group\_arn) | ARN of the NLB target group. | | [nlb\_target\_group\_id](#output\_nlb\_target\_group\_id) | ID of the NLB target group. | | [nlb\_zone\_id](#output\_nlb\_zone\_id) | The canonical hosted zone ID of the load balancer. | diff --git a/outputs.tf b/outputs.tf index bff9126..5b7a074 100644 --- a/outputs.tf +++ b/outputs.tf @@ -18,11 +18,6 @@ output "nlb_ips" { ] } -output "nlb_target_group_id" { - description = "ID of the NLB target group." - value = aws_lb_target_group.main.id -} - output "nlb_listener_arn" { description = "The ARN associated with the listener on the NLB." value = aws_lb_listener.main.arn @@ -32,3 +27,13 @@ output "nlb_zone_id" { description = "The canonical hosted zone ID of the load balancer." value = aws_lb.main.zone_id } + +output "nlb_target_group_arn" { + description = "ARN of the NLB target group." + value = aws_lb_target_group.main.arn +} + +output "nlb_target_group_id" { + description = "ID of the NLB target group." + value = aws_lb_target_group.main.id +}