forked from terraform-aws-modules/terraform-aws-alb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
145 lines (119 loc) · 5.12 KB
/
variables.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
variable "enable_deletion_protection" {
description = "If true, deletion of the load balancer will be disabled via the AWS API. This will prevent Terraform from deleting the load balancer. Defaults to false."
default = false
}
variable "enable_http2" {
description = "Indicates whether HTTP/2 is enabled in application load balancers."
default = true
}
variable "extra_ssl_certs" {
description = "A list of maps describing any extra SSL certificates to apply to the HTTPS listeners. Required key/values: certificate_arn, https_listener_index (the index of the listener within https_listeners which the cert applies toward)."
type = "list"
default = []
}
variable "extra_ssl_certs_count" {
description = "A manually provided count/length of the extra_ssl_certs list of maps since the list cannot be computed."
default = 0
}
variable "https_listeners" {
description = "A list of maps describing the HTTPS listeners for this ALB. Required key/values: port, certificate_arn. Optional key/values: ssl_policy (defaults to ELBSecurityPolicy-2016-08), target_group_index (defaults to 0)"
type = "list"
default = []
}
variable "https_listeners_count" {
description = "A manually provided count/length of the https_listeners list of maps since the list cannot be computed."
default = 0
}
variable "http_tcp_listeners" {
description = "A list of maps describing the HTTPS listeners for this ALB. Required key/values: port, protocol. Optional key/values: target_group_index (defaults to 0)"
type = "list"
default = []
}
variable "http_tcp_listeners_count" {
description = "A manually provided count/length of the http_tcp_listeners list of maps since the list cannot be computed."
default = 0
}
variable "idle_timeout" {
description = "The time in seconds that the connection is allowed to be idle."
default = 60
}
variable "ip_address_type" {
description = "The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 and dualstack."
default = "ipv4"
}
variable "listener_ssl_policy_default" {
description = "The security policy if using HTTPS externally on the load balancer. [See](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-policy-table.html)."
default = "ELBSecurityPolicy-2016-08"
}
variable "load_balancer_is_internal" {
description = "Boolean determining if the load balancer is internal or externally facing."
default = false
}
variable "load_balancer_create_timeout" {
description = "Timeout value when creating the ALB."
default = "10m"
}
variable "load_balancer_delete_timeout" {
description = "Timeout value when deleting the ALB."
default = "10m"
}
variable "load_balancer_name" {
description = "The resource name and Name tag of the load balancer."
}
variable "load_balancer_update_timeout" {
description = "Timeout value when updating the ALB."
default = "10m"
}
variable "logging_enabled" {
description = "Controls if the ALB will log requests to S3."
default = true
}
variable "log_bucket_name" {
description = "S3 bucket (externally created) for storing load balancer access logs. Required if logging_enabled is true."
default = ""
}
variable "log_location_prefix" {
description = "S3 prefix within the log_bucket_name under which logs are stored."
default = ""
}
variable "subnets" {
description = "A list of subnets to associate with the load balancer. e.g. ['subnet-1a2b3c4d','subnet-1a2b3c4e','subnet-1a2b3c4f']"
type = "list"
}
variable "tags" {
description = "A map of tags to add to all resources"
default = {}
}
variable "security_groups" {
description = "The security groups to attach to the load balancer. e.g. [\"sg-edcd9784\",\"sg-edcd9785\"]"
type = "list"
}
variable "target_groups" {
description = "A list of maps containing key/value pairs that define the target groups to be created. Order of these maps is important and the index of these are to be referenced in listener definitions. Required key/values: name, backend_protocol, backend_port. Optional key/values are in the target_groups_defaults variable."
type = "list"
default = []
}
variable "target_groups_count" {
description = "A manually provided count/length of the target_groups list of maps since the list cannot be computed."
default = 0
}
variable "target_groups_defaults" {
description = "Default values for target groups as defined by the list of maps."
type = "map"
default = {
"cookie_duration" = 86400
"deregistration_delay" = 300
"health_check_interval" = 10
"health_check_healthy_threshold" = 3
"health_check_path" = "/"
"health_check_port" = "traffic-port"
"health_check_timeout" = 5
"health_check_unhealthy_threshold" = 3
"health_check_matcher" = "200-299"
"stickiness_enabled" = true
"target_type" = "instance"
}
}
variable "vpc_id" {
description = "VPC id where the load balancer and other resources will be deployed."
}