-
Notifications
You must be signed in to change notification settings - Fork 16
/
outputs.tf
34 lines (28 loc) · 927 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
output "arn" {
description = "The ARN of the load balancer."
value = aws_lb.main.arn
}
output "name" {
description = "The name of the load balancer."
value = element(split("/", aws_lb.main.name), 2)
}
output "dns_name" {
description = "The DNS name of the load balancer."
value = aws_lb.main.dns_name
}
output "zone_id" {
description = "The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record)."
value = aws_lb.main.zone_id
}
output "origin_id" {
description = "First part of the DNS name of the load balancer."
value = element(split(".", aws_lb.main.dns_name), 0)
}
output "security_group_id" {
description = "The ID of the security group."
value = concat(aws_security_group.main[*].id, [""])[0]
}
output "arn_suffix" {
description = "The ARN suffix for use with CloudWatch Metrics."
value = aws_lb.main.arn_suffix
}