-
Notifications
You must be signed in to change notification settings - Fork 21
/
outputs.tf
73 lines (62 loc) · 1.97 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
#Module : ALB
#Description : This terraform module is used to create ALB on AWS.
output "name" {
value = join("", aws_lb.main[*].name)
description = "The ARN suffix of the ALB."
}
output "arn" {
value = join("", concat(aws_lb.main[*].arn))
description = "The ARN of the ALB."
}
output "clb_arn" {
value = join("", concat(aws_elb.main[*].arn))
description = "The ARN of the CLB."
}
output "arn_suffix" {
value = join("", aws_lb.main[*].arn_suffix)
description = "The ARN suffix of the ALB."
}
output "dns_name" {
value = join("", aws_lb.main[*].dns_name)
description = "DNS name of ALB."
}
output "clb_name" {
value = join("", aws_elb.main[*].dns_name)
description = "DNS name of CLB."
}
output "zone_id" {
value = join("", aws_lb.main[*].zone_id)
description = "The ID of the zone which ALB is provisioned."
}
output "clb_zone_id" {
value = join("", aws_elb.main[*].zone_id)
description = "The ID of the zone which ALB is provisioned."
}
output "main_target_group_arn" {
value = join("", aws_lb_target_group.main[*].arn)
description = "The main target group ARN."
}
output "http_listener_arn" {
value = join("", aws_lb_listener.http[*].arn)
description = "The ARN of the HTTP listener."
}
output "https_listener_arn" {
value = join("", aws_lb_listener.https[*].arn)
description = "The ARN of the HTTPS listener."
}
output "listener_arns" {
value = compact(concat(aws_lb_listener.http[*].arn, aws_lb_listener.https[*].arn))
description = "A list of all the listener ARNs."
}
output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}
output "security_group_arn" {
description = "Amazon Resource Name (ARN) of the security group"
value = try(aws_security_group.default[0].arn, null)
}
output "security_group_id" {
description = "ID of the security group"
value = try(aws_security_group.default[0].id, null)
}