-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
62 lines (52 loc) · 1.93 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
output "load_balancers" {
description = "The ARNs (Amazon Resource Name) of the load balancers associated with the target group."
value = aws_lb_target_group.this.load_balancer_arns
}
output "arn" {
description = "The Amazon Resource Name (ARN) of the target group."
value = aws_lb_target_group.this.arn
}
output "arn_suffix" {
description = "The ARN suffix for use with CloudWatch Metrics."
value = aws_lb_target_group.this.arn_suffix
}
output "id" {
description = "The ID of the target group."
value = aws_lb_target_group.this.id
}
output "name" {
description = "The name of the target group."
value = aws_lb_target_group.this.name
}
output "type" {
description = "The target type of the target group."
value = upper(aws_lb_target_group.this.target_type)
}
output "targets" {
description = "A list of targets in the target group. The Lambda target group is limited to a single Lambda function target."
value = [
for target in aws_lb_target_group_attachment.this : {
lambda_function = {
arn = target.target_id
}
}
]
}
output "attributes" {
description = "Attributes of the Lambda target group of application load balancer."
value = {
multi_value_headers_enabled = aws_lb_target_group.this.lambda_multi_value_headers_enabled
}
}
output "health_check" {
description = "Health Check configuration of the target group."
value = {
enabled = aws_lb_target_group.this.health_check[0].enabled
path = aws_lb_target_group.this.health_check[0].path
success_codes = aws_lb_target_group.this.health_check[0].matcher
healthy_threshold = aws_lb_target_group.this.health_check[0].healthy_threshold
unhealthy_threshold = aws_lb_target_group.this.health_check[0].unhealthy_threshold
interval = aws_lb_target_group.this.health_check[0].interval
timeout = aws_lb_target_group.this.health_check[0].timeout
}
}