-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
136 lines (111 loc) · 4.17 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
// Required Variables
variable "alb_dns_name" {
description = "The DNS name of the ALB to point the DNS at"
}
variable "alb_listener_arn" {
description = "The ARN of the ALB listener to add the rule to."
}
variable "aws_account_alias" {
description = "The AWS account alias where the router is deployed"
type = string
}
variable "backend_dns" {
description = "The domain and top level domain used as the address for the ALB"
type = string
}
variable "env" {
description = "The name of the environment (included at the front of the DNS name with a hyphen if not live)"
}
variable "priority" {
description = "ALB listener rule priority"
}
variable "vpc_id" {
description = "The identifier of the VPC in which to create the target group."
type = string
}
// Optional Variables
variable "allow_overwrite" {
description = "Allow creation of this record in Terraform to overwrite an existing record, if any."
type = string
default = "false"
}
variable "component_name" {
type = string
description = "The name of the component - used by default for the DNS entry (with the -service suffix removed), as well as to give the target group a meaningful name"
default = ""
}
variable "deregistration_delay" {
description = "The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds."
type = string
default = "10"
}
variable "dns_domain" {
description = "The top level domain the service should live under. This will be the host used for the rule to route to a target group"
default = ""
}
variable "hash_target_group_name" {
description = "Include a hash of the target group name when naming it to avoid collisions"
type = string
default = "false"
}
variable "health_check_interval" {
description = "The approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds."
type = string
default = "5"
}
variable "health_check_healthy_threshold" {
description = "The number of consecutive health checks successes required before considering an unhealthy target healthy."
type = string
default = "2"
}
variable "health_check_matcher" {
description = "The HTTP codes to use when checking for a successful response from a target. You can specify multiple values (for example, \"200,202\") or a range of values (for example, \"200-299\")."
type = string
default = "200-299"
}
variable "health_check_path" {
description = "The destination for the health check request."
type = string
default = "/internal/healthcheck"
}
variable "health_check_timeout" {
description = "The amount of time, in seconds, during which no response means a failed health check."
type = string
default = "4"
}
variable "health_check_unhealthy_threshold" {
description = "The number of consecutive health check failures required before considering the target unhealthy."
type = string
default = "2"
}
variable "override_dns_name" {
type = string
description = "The first part of the DNS name without the environment (defaults to component_name with -service suffix removed)"
default = ""
}
variable "ttl" {
description = "Time to live"
default = "60"
}
variable "target_type" {
description = "The possible values are instance (targets are specified by instance ID) or ip (targets are specified by IP address) or lambda (targets are specified by lambda arn)"
default = "instance"
}
variable "extra_listener_host_names" {
description = "A list of hostname to be included in the host header for the ALB listener rule"
type = list(string)
default = []
}
variable "extra_listener_http_header_pairs" {
description = "A list of HTTP headers to be included in the http header condition for the ALB listener rule"
type = list(object({
http_header_name = string,
values = set(string)
}))
default = []
}
variable "simple_dns_name" {
description = "simplify the name of route53 dns in live env"
type = bool
default = false
}