-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
129 lines (107 loc) · 4.5 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
# Required parameters
variable "name" {
description = "Name/name prefix to apply to the resources in the module."
type = string
}
variable "task_definition" {
description = "The family and revision (family:revision) or full ARN of the task definition that you want to run in your service."
type = string
}
variable "target_group_arn" {
description = "The target group ARN"
type = string
default = ""
}
variable "multiple_target_group_arns" {
description = "Mutiple target group ARNs to allow connection to multiple loadbalancers"
type = list
default = []
}
variable "cluster" {
description = "The name of the ECS cluster to deploy the service to."
type = string
default = "default"
}
variable "desired_count" {
description = "The number of instances of the task definition to place and keep running."
type = string
default = "3"
}
variable "container_name" {
description = "The name of the container to associate with the load balancer (as it appears in a container definition)."
type = string
default = "app"
}
variable "container_port" {
description = "The port on the container to associate with the load balancer."
type = string
default = "8000"
}
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 "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_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_healthy_threshold" {
description = "The number of consecutive health checks successes required before considering an unhealthy target healthy."
type = string
default = "2"
}
variable "health_check_unhealthy_threshold" {
description = "The number of consecutive health check failures required before considering the target unhealthy."
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 "deployment_minimum_healthy_percent" {
description = "The minimumHealthyPercent represents a lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount (rounded up to the nearest integer)."
default = "100"
}
variable "deployment_maximum_percent" {
description = "The maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer)."
default = "200"
}
variable "pack_and_distinct" {
description = "Enable distinct instance and task binpacking for better cluster utilisation. Enter 'true' for clusters with auto scaling groups. Enter 'false' for clusters with no ASG and instant counts less than or equal to desired tasks"
type = string
default = "false"
}
variable "network_configuration_subnets" {
description = "needed for network_mode awsvpc "
type = list
default = []
}
variable "network_configuration_security_groups" {
description = "needed for network_mode awsvpc "
type = list
default = []
}
variable "health_check_grace_period_seconds" {
description = "Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Default 0."
type = string
default = "0"
}
variable "capacity_providers" {
description = "The capacity providers to add to the service. If the service is using the default capacity provider strategy, the service can also have one or more capacity providers specified using the capacityProviders parameter."
type = list
default = []
}