-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
variables.tf
45 lines (38 loc) · 1.08 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
variable "min_capacity" {
type = number
description = "Minimum number of running instances of a Service"
default = 1
}
variable "max_capacity" {
type = number
description = "Maximum number of running instances of a Service"
default = 2
}
variable "cluster_name" {
type = string
description = "The name of the ECS cluster where service is to be autoscaled"
}
variable "service_name" {
type = string
description = "The name of the ECS Service to autoscale"
}
variable "scale_up_adjustment" {
type = number
description = "Scaling adjustment to make during scale up event"
default = 1
}
variable "scale_up_cooldown" {
type = number
description = "Period (in seconds) to wait between scale up events"
default = 60
}
variable "scale_down_adjustment" {
type = number
description = "Scaling adjustment to make during scale down event"
default = -1
}
variable "scale_down_cooldown" {
type = number
description = "Period (in seconds) to wait between scale down events"
default = 300
}