-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoutputs.tf
48 lines (42 loc) · 1.22 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
output "arn" {
description = "The Amazon Resource Name (ARN) of the listener."
value = aws_lb_listener.this.arn
}
output "id" {
description = "The ID of the listener."
value = aws_lb_listener.this.id
}
output "name" {
description = "The name of the listener."
value = local.metadata.name
}
output "port" {
description = "The port number on which the listener of load balancer is listening."
value = aws_lb_listener.this.port
}
output "protocol" {
description = "The protocol for connections of the listener."
value = aws_lb_listener.this.protocol
}
output "default_action" {
description = "The default action for traffic on this listener."
value = {
type = "FORWARD"
forward = {
arn = var.target_group
name = split("/", var.target_group)[1]
}
}
}
output "tls" {
description = "TLS configurations of the listener."
value = local.tls_enabled ? {
certificate = aws_lb_listener.this.certificate_arn
additional_certificates = [
for certificate in values(aws_lb_listener_certificate.this) :
certificate.certificate_arn
]
security_policy = aws_lb_listener.this.ssl_policy
alpn_policy = aws_lb_listener.this.alpn_policy
} : null
}