-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
98 lines (80 loc) · 2.95 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
output "arn" {
description = "The Amazon Resource Name (ARN) of the load balancer."
value = aws_lb.this.arn
}
output "arn_suffix" {
description = "The ARN suffix for use with CloudWatch Metrics."
value = aws_lb.this.arn_suffix
}
output "id" {
description = "The ID of the load balancer."
value = aws_lb.this.id
}
output "name" {
description = "The name of the load balancer."
value = aws_lb.this.name
}
output "type" {
description = "The type of the load balancer. Always return `NETWORK`."
value = local.load_balancer_type
}
output "zone_id" {
description = "The canonical hosted zone ID of the load balancer to be used in a Route 53 Alias record."
value = aws_lb.this.zone_id
}
output "domain" {
description = "The DNS name of the load balancer."
value = aws_lb.this.dns_name
}
output "is_public" {
description = "Indicates whether the load balancer is public."
value = !aws_lb.this.internal
}
output "ip_address_type" {
description = "The type of IP addresses used by the subnets for your load balancer."
value = upper(aws_lb.this.ip_address_type)
}
output "availability_zone_ids" {
description = "A list of the Availability Zone IDs which are used by the load balancer."
value = local.availability_zone_ids
}
output "vpc_id" {
description = "The VPC ID of the load balancer."
value = aws_lb.this.vpc_id
}
output "subnets" {
description = "A list of subnet IDs attached to the load balancer."
value = aws_lb.this.subnets
}
output "network_mapping" {
description = "The configuration for the load balancer how routes traffic to targets in which subnets and IP address settings."
value = local.network_mapping
}
output "security_group_evaluation_on_privatelink_enabled" {
description = "Whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through AWS PrivateLink."
value = aws_lb.this.enforce_security_group_inbound_rules_on_private_link_traffic == "on"
}
output "default_security_group" {
description = "The default security group ID of the load balancer."
value = one(module.security_group[*].id)
}
output "security_groups" {
description = "A set of security group IDs which is assigned to the load balancer."
value = aws_lb.this.security_groups
}
output "access_log" {
description = "The configuration for access logs of the load balancer."
value = var.access_log
}
output "attributes" {
description = "Load Balancer Attributes that applied to the network load balancer."
value = {
cross_zone_load_balancing_enabled = aws_lb.this.enable_cross_zone_load_balancing
deletion_protection_enabled = aws_lb.this.enable_deletion_protection
route53_resolver_availability_zone_affinity = var.route53_resolver_availability_zone_affinity
}
}
output "listeners" {
description = "The listeners of the network load balancer."
value = module.listener
}