From d04607563748fb1dd587540c10bf33f42d241d4b Mon Sep 17 00:00:00 2001 From: Sarkis Varozian Date: Fri, 29 Jun 2018 12:26:11 -0700 Subject: [PATCH] expose alb name as output (#5) --- README.md | 1 + docs/terraform.md | 1 + outputs.tf | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index de6d6d2..75a15e3 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ Available targets: | alb_arn | The ARN of the ALB | | alb_arn_suffix | The ARN suffix of the ALB | | alb_dns_name | DNS name of ALB | +| alb_name | The ARN suffix of the ALB | | alb_zone_id | The ID of the zone which ALB is provisioned | | default_target_group_arn | The default target group ARN | | http_listener_arn | The ARN of the HTTP listener | diff --git a/docs/terraform.md b/docs/terraform.md index 1981c53..8cdd8dc 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -46,6 +46,7 @@ | alb_arn | The ARN of the ALB | | alb_arn_suffix | The ARN suffix of the ALB | | alb_dns_name | DNS name of ALB | +| alb_name | The ARN suffix of the ALB | | alb_zone_id | The ID of the zone which ALB is provisioned | | default_target_group_arn | The default target group ARN | | http_listener_arn | The ARN of the HTTP listener | diff --git a/outputs.tf b/outputs.tf index abf4275..82e7b4e 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,8 @@ +output "alb_name" { + description = "The ARN suffix of the ALB" + value = "${aws_lb.default.name}" +} + output "alb_arn" { description = "The ARN of the ALB" value = "${aws_lb.default.arn}"