-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables_load_balancer.tf
67 lines (57 loc) · 1.61 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
## Load balancer variables
# Load balancer internal or external
variable "create_internal_lb" {
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 subnet groups
variable "lb_subnet_ids" {
type = list(string)
description = "The subnet ID(s) which should be attached to the loadbalancer"
default = []
}
## Load balancer security groups
variable "lb_security_group_ids" {
type = list(string)
description = "Additional Security Group ID(s) which should be attached to the loadbalancer"
default = []
}
# 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 logs bucket
variable "lb_logs_bucket_enabled" {
description = "Boolean to enable / disable access_logs"
default = true
}
variable "lb_logs_bucket_name" {
description = "The S3 bucket name to store the logs in"
default = ""
}
variable "lb_logs_bucket_prefix" {
description = "The S3 bucket prefix. Logs are stored in the root if not configured"
default = ""
}
# Load balancer deletion protection
variable "lb_enable_deletion_protection" {
description = "Enable deletion protection"
default = false
}
# Tags
variable "lb_tags" {
description = "Tags for the load balancer"
type = map(string)
default = {}
}