-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathoutputs.tf
59 lines (48 loc) · 1.64 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
output "lb_public_dns" {
description = "The DNS name of the public load balancer."
value = aws_lb.public.dns_name
}
output "lb_private_dns" {
description = "The DNS name of the private load balancer."
value = try(aws_lb.private[0].dns_name, "")
}
output "vpn_public_dns" {
value = try(aws_route53_record.public[0].name, aws_lb.public.dns_name)
description = "public dns for connect vpn server"
}
output "vpn_private_dns" {
value = try(aws_route53_record.private[0].name, try(aws_lb.private[0].dns_name, ""))
description = "private dns for connect vpn server"
}
output "efs_id" {
description = "The ID that identifies the file system for pritunl vpn"
value = module.efs.id
}
output "efs_dns_name" {
description = "The DNS name for the filesystem"
value = module.efs.dns_name
}
output "security_group_id" {
description = "ID of the security group associated to this ec2"
value = try(aws_security_group.this[0].id, "")
}
output "security_group_arn" {
description = "ARN of the security group associated to this ec2"
value = try(aws_security_group.this[0].arn, "")
}
output "aws_lb_public_arn" {
description = "ARN of the application loadbalancer"
value = aws_lb.public.arn
}
output "aws_lb_private_arn" {
description = "ARN of the application loadbalancer"
value = try(aws_lb.private[0].arn, "")
}
output "aws_lb_public_zone_id" {
description = "zone id of the application loadbalancer"
value = aws_lb.public.zone_id
}
output "aws_lb_private_zone_id" {
description = "zone id of the application loadbalancer"
value = try(aws_lb.private[0].zone_id, "")
}