-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
198 lines (144 loc) · 3.82 KB
/
Copy pathvariables.tf
File metadata and controls
198 lines (144 loc) · 3.82 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
variable "owner" {
}
variable "app" {
}
variable "environment" {
}
variable "domain_name" {
default = null
nullable = true
}
variable "domain_prefix" {
default = null
}
variable "domain_use_root" {
default = false
type = bool
}
variable "service_port" {
}
variable "health_check_port" {
default = null
}
variable "health_check_interval" {
description = "Determines the approximate amount of time, in seconds, between health checks of an individual container."
default = null
}
variable "health_check_healthy_threshold" {
description = "Determines the number of consecutive health check successes required before considering an unhealthy container healthy."
default = null
}
variable "health_check_ok_status_codes" {
default = "200"
}
variable "health_check_grace_period" {
default = null
description = "The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks, container health checks, and Route 53 health checks after a task enters a RUNNING state."
}
variable "deregistration_delay" {
description = "The time in seconds a draining task waits until its full deregisted and client connections are terminated."
default = "180"
type = string
}
variable "ingress_subnets" {
}
variable "service_subnets" {
}
variable "vpc_id" {
}
variable "service_type" {
type = string
description = "Choose if this load balancer will be used by EC2 or Fargate service"
validation {
condition = contains(["FARGATE", "FARGATE_SPOT", "EC2"], var.service_type)
error_message = "Must be either FARGATE or EC2 service type."
}
}
variable "service_additional_security_groups" {
type = list(string)
default = []
description = "A list of existing additional security groups to add to the application service. They may grant access to resources like databases controlled outside this stack."
}
variable "ingress_additional_security_groups" {
type = list(string)
default = []
description = "A list of existing additional security groups to add to the application load balancer (If one is created)."
}
variable "internal" {
default = true
}
variable "ecs_instance_capacity_provider_name" {
default = null
}
variable "desired_count" {
}
variable "cluster_arn" {
}
variable "cpu" {
}
variable "memory" {
}
variable "task_execution_role_arn" {
}
variable "task_role_arn" {
default = null
}
variable "log_retention" {
default = 1
}
variable "taskdefinition_file_path" {
}
variable "force_new_deployment" {
default = false
}
variable "ingress_allow_ips" {
default = []
}
variable "ingress_allow_ipv6" {
default = null
}
variable "ingress_allow_security_groups" {
default = []
}
variable "cluster_cloudmap_namespace_name" {
default = null
}
variable "loadbalancer_type" {
default = "application"
type = string
description = "Choose if this load balancer is and ALB or NLB"
validation {
condition = contains(["application", "network"], var.loadbalancer_type)
error_message = "Must be either application or network loadbalancer type."
}
}
variable "architecture" {
default = "STANDARD"
type = string
description = "Choose the task definition architecture."
validation {
condition = contains(["STANDARD", "ARM"], var.architecture)
error_message = "The container must use either AMD64 or ARM64 architecture."
}
}
variable "create_loadbalancer" {
default = true
type = bool
description = "Conditionally create a loadbalancer"
}
variable "autoscaling_min" {
default = null
}
variable "autoscaling_max" {
default = null
}
variable "autoscaling_cpu_threshold" {
default = 70
}
variable "autoscaling_mem_threshold" {
default = 90
}
variable "efs_volume_ids" {
nullable = true
default = {}
}