-
Notifications
You must be signed in to change notification settings - Fork 8
/
outputs.tf
84 lines (68 loc) · 2.88 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
75
76
77
78
79
80
81
82
83
84
output "alb_sg_id" {
description = "The ID of security group for ALB."
value = element(concat(
aws_security_group.allow_in80_in443_outALL.*.id, tolist([var.alb_custom_security_group_id])), 0)
}
output "alb_sg_ingress" {
description = "The Ingress rule of security group for ALB."
value = element(concat(aws_security_group.allow_in80_in443_outALL.*.id, tolist(["Please refer to ${var.alb_custom_security_group_id}"])), 0)
}
output "alb_sg_egress" {
description = "The Egress rule of security group for ALB."
value = element(concat(aws_security_group.allow_in80_in443_outALL.*.id, tolist(["Please refer to ${var.alb_custom_security_group_id}"])), 0)
}
output "alb_s3_logs" {
description = "S3 bucket name for storing ALB logs."
value = element(concat(aws_s3_bucket.alb-logs.*.id, tolist([""])), 0)
}
output "alb_dns_name" {
description = "The DNS name of the load balancer."
value = module.alb.lb_dns_name
}
output "alb_custom_dns_name" {
description = "The custom DNS name of the load balancer."
value = element(concat(aws_route53_record.alb.*.name, data.aws_iam_server_certificate.ss_cert.*.name, tolist([""])), 0)
}
output "alb_http_tcp_listener_arns" {
description = "The ARN of the TCP and HTTP load balancer listeners created."
value = module.alb.http_tcp_listener_arns
}
output "alb_http_tcp_listener_ids" {
description = "The IDs of the TCP and HTTP load balancer listeners created."
value = module.alb.http_tcp_listener_ids
}
output "alb_https_listener_arns" {
description = "The ARNs of the HTTPS load balancer listeners created."
value = module.alb.https_listener_arns
}
output "alb_https_listener_ids" {
description = "The IDs of the load balancer listeners created."
value = module.alb.https_listener_ids
}
output "load_balancer_arn_suffix" {
description = "ARN suffix of our load balancer - can be used with CloudWatch."
value = module.alb.lb_arn_suffix
}
output "load_balancer_id" {
description = "The ID and ARN of the load balancer we created."
value = module.alb.lb_id
}
output "load_balancer_zone_id" {
description = "The zone_id of the load balancer to assist with creating DNS records."
value = module.alb.lb_zone_id
}
output "target_group_arn_suffixes" {
description = "ARN suffixes of our target groups - can be used with CloudWatch."
value = module.alb.target_group_arn_suffixes
}
output "alb_target_group_arns" {
description = "ARNs of the target groups. Useful for passing to your Auto Scaling group."
value = module.alb.target_group_arns
}
output "alb_target_group_names" {
description = "Name of the target group. Useful for passing to your CodeDeploy Deployment Group."
value = module.alb.target_group_names
}
output "root_domain_hosted_zone_id" {
value = element(concat(aws_route53_record.alb.*.zone_id, tolist([""])), 0)
}