This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoutputs.tf
More file actions
55 lines (44 loc) · 1.46 KB
/
outputs.tf
File metadata and controls
55 lines (44 loc) · 1.46 KB
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
output "id" {
description = "AWS ALB id"
value = element(concat(aws_alb.alb.*.id, [""]), 0)
}
output "zone_id" {
description = "AWS ALB zone id"
value = element(concat(aws_alb.alb.*.zone_id, [""]), 0)
}
output "arn" {
description = "AWS ALB ARN"
value = element(concat(aws_alb.alb.*.arn, [""]), 0)
}
output "dns_name" {
description = "AWS ALB DNS name"
value = element(concat(aws_alb.alb.*.dns_name, [""]), 0)
}
output "http_listner_arn" {
description = "AWS ALB HTTP listner arn"
value = element(concat(aws_alb_listener.listener_http.*.arn, [""]), 0)
}
output "https_listner_arn" {
description = "AWS ALB HTTP listner arn"
value = element(concat(aws_alb_listener.listener_https.*.arn, [""]), 0)
}
output "default_target_group_http" {
description = "Default HTTP target group arn"
value = element(concat(aws_alb_target_group.dummy_http.*.arn, [""]), 0)
}
output "default_target_group_https" {
description = "Default HTTPS target group arn"
value = element(concat(aws_alb_target_group.dummy_https.*.arn, [""]), 0)
}
output "aws_alb_listener_https" {
value = try(aws_alb_listener.listener_https[0], {})
description = "AWS ALB HTTPS listener attributes"
}
output "aws_alb_listener_http" {
value = try(aws_alb_listener.listener_http[0], {})
description = "AWS ALB HTTPS listener attributes"
}
output "aws_alb" {
value = try(aws_alb.alb[0], {})
description = "AWS ALB attributes"
}