forked from terraform-aws-modules/terraform-aws-alb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
74 lines (59 loc) · 2.38 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
63
64
65
66
67
68
69
70
71
72
73
74
################################################################################
# Load Balancer
################################################################################
output "id" {
description = "The ID and ARN of the load balancer we created"
value = try(aws_lb.this[0].id, null)
}
output "arn" {
description = "The ID and ARN of the load balancer we created"
value = try(aws_lb.this[0].arn, null)
}
output "arn_suffix" {
description = "ARN suffix of our load balancer - can be used with CloudWatch"
value = try(aws_lb.this[0].arn_suffix, null)
}
output "dns_name" {
description = "The DNS name of the load balancer"
value = try(aws_lb.this[0].dns_name, null)
}
output "zone_id" {
description = "The zone_id of the load balancer to assist with creating DNS records"
value = try(aws_lb.this[0].zone_id, null)
}
################################################################################
# Listener(s)
################################################################################
output "listeners" {
description = "Map of listeners created and their attributes"
value = aws_lb_listener.this
}
output "listener_rules" {
description = "Map of listeners rules created and their attributes"
value = aws_lb_listener_rule.this
}
################################################################################
# Target Group(s)
################################################################################
output "target_groups" {
description = "Map of target groups created and their attributes"
value = aws_lb_target_group.this
}
################################################################################
# Security Group
################################################################################
output "security_group_arn" {
description = "Amazon Resource Name (ARN) of the security group"
value = try(aws_security_group.this[0].arn, null)
}
output "security_group_id" {
description = "ID of the security group"
value = try(aws_security_group.this[0].id, null)
}
################################################################################
# Route53 Record(s)
################################################################################
output "route53_records" {
description = "The Route53 records created and attached to the load balancer"
value = aws_route53_record.this
}