forked from zoitech/terraform-aws-alb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables_load_balancer.tf
129 lines (110 loc) · 3.6 KB
/
variables_load_balancer.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
## Load balancer variables
# Load balancer internal or external
variable "lb_internal" {
description = "Define if the loadbalancer should be internal or not"
default = true
}
# Load balancer name
variable "lb_name" {
description = "Name of the loadbalancer"
default = "loadbalancer"
}
# Load balancer public subnet groups
variable "lb_public_subnet_ids" {
type = "list"
description = "The Public Subnet ID(s) which should be attached to the loadbalancer"
default = []
}
# Load balancer private subnet groups
variable "lb_private_subnet_ids" {
type = "list"
description = "The Private Subnet ID(s) which should be attached to the loadbalancer"
default = []
}
## Load balancer security groups
# Load balancer additional security groups
variable "lb_security_group_ids" {
type = "list"
description = "Additional Security Group ID(s) which should be attached to the loadbalancer"
default = []
}
# Loadbalancer source traffic name (for security group allowing listener traffic in)
variable "lb_source_traffic_name" {
description = "Name of source traffic for the loadbalancer within the HTTP and HTTPS security group. E.g. Rule-allow-${var.lb_source_traffic_name}-in-HTTP"
default = ""
}
# Loadbalancer HTTP security group name
variable "lb_sg_http_name" {
description = "Name of the HTTP security group"
default = ""
}
# Loadbalancer HTTPS security group name
variable "lb_sg_https_name" {
description = "Name of the HTTP security group"
default = ""
}
# CIDR blocks specifying IP(s) allowed in on the http listener port for the loadbalancer
variable "rule_allow_lb_http_listener_traffic_in_cidr_blocks" {
type = "list"
description = "CIDR blocks loadbalancer http listener source traffic"
default = ["0.0.0.0/0"]
}
# CIDR blocks specifying IP(s) allowed in on the https listener port for the loadbalancer
variable "rule_allow_lb_https_listener_traffic_in_cidr_blocks" {
type = "list"
description = "CIDR blocks loadbalancer https listener source traffic"
default = ["0.0.0.0/0"]
}
# Load balancer idle timeout
variable "lb_idle_timeout" {
description = "Idle timeout for the loadbalancer."
default = 60
}
# Load balancer enable http2
variable "lb_enable_http2" {
description = "Define is http2 is enabled"
default = true
}
# Load balancer deletion protection
variable "lb_enable_deletion_protection" {
description = "Enable deletion protection"
default = false
}
## Load balancer listener variables
# Load balancer HTTP listener needed?
variable "lb_http_listener" {
description = "If true add a HTTP listener"
default = true
}
# Load balancer HTTPS listener needed?
variable "lb_https_listener" {
description = "If true add a HTTPS listener"
default = false
}
# Load balancer HTTP listener port
variable "lb_http_listener_port" {
description = "HTTP listener port of the loadbalancer"
default = 80
}
# Loadbalancer HTTPS listener port
variable "lb_https_listener_port" {
description = "HTTPS listener port of the loadbalancer"
default = 443
}
# HTTP host headers for load balancer listener rules
variable "http_host_headers" {
type = "list"
description = "Http ost headers for load balancer listener rules"
default = []
}
# HTTPS host headers for load balancer listener rules
variable "https_host_headers" {
type = "list"
description = "Https ost headers for load balancer listener rules"
default = []
}
# Certificate ARN for the HTTPS listener
variable "certificate_arn" {
description = "Certificate ARN for the HTTPS listener"
default = ""
}