Skip to content

Commit

Permalink
Merge pull request #5 from WisePricer/suffixes
Browse files Browse the repository at this point in the history
Suffixes
  • Loading branch information
snemetz authored May 16, 2018
2 parents 47c8a85 + 1e4c28d commit e6788b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ output "arn" {
value = "${element(concat(aws_lb.application.*.arn, aws_lb.network.*.arn, list("")), 0)}"
}

output "arn_suffix" {
description = "ARN suffix of the LB itself. Useful for debug output, for example when attaching a WAF."
value = "${element(concat(aws_lb.application.*.arn_suffix, aws_lb.network.*.arn_suffix, list("")), 0)}"
}

output "dns_name" {
description = "The DNS name of the LB presumably to be used with a friendlier CNAME."
value = "${element(concat(aws_lb.application.*.dns_name, aws_lb.network.*.dns_name, list("")), 0)}"
Expand Down Expand Up @@ -90,6 +95,11 @@ output "target_group_arns" {
value = "${compact(concat(aws_lb_target_group.application-http.*.arn,aws_lb_target_group.application-https.*.arn,aws_lb_target_group.network.*.arn))}"
}

output "target_group_arns_suffix" {
description = "ARNs suffix of all the target groups. Useful for passing to your Auto Scaling group module."
value = "${compact(concat(aws_lb_target_group.application-http.*.arn_suffix,aws_lb_target_group.application-https.*.arn_suffix,aws_lb_target_group.network.*.arn_suffix))}"
}

output "target_group_http_ids" {
description = "IDs of the HTTP target groups"
value = "${aws_lb_target_group.application-http.*.id}"
Expand Down

0 comments on commit e6788b3

Please sign in to comment.