-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
118 lines (97 loc) · 3.56 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
variable "enabled" {
type = bool
description = "Whether to create the resources. Set to `false` to prevent the module from creating any resources"
default = true
}
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
}
variable "cluster_name" {
type = string
description = "Name of ECS cluster that service is in"
}
variable "service_name" {
type = string
description = "Name of ECS service to autoscale"
}
variable "metric_query" {
description = "Enables you to create an alarm based on a metric math expression. You may specify at most 20."
type = any
default = []
}
variable "tags" {
description = "A mapping of tags to assign to all resources"
type = map(string)
default = {}
}
variable "max_capacity" {
type = string
description = "Maximum number of tasks to scale to"
default = "5"
}
variable "min_capacity" {
type = string
description = "Minimum number of tasks to scale to"
default = "2"
}
variable "scale_up_cooldown" {
type = string
description = "The amount of time, in seconds, after a scaling up completes and before the next scaling up can start"
default = "60"
}
variable "scale_down_cooldown" {
type = string
description = "The amount of time, in seconds, after a scaling down completes and before the next scaling activity can start"
default = "60"
}
variable "adjustment_type_down" {
type = string
description = "Autoscaling policy down adjustment type (ExactCapacity, ChangeInCapacity, PercentChangeInCapacity)"
default = "ChangeInCapacity"
}
variable "adjustment_type_up" {
type = string
description = "Autoscaling policy up adjustment type (ExactCapacity, ChangeInCapacity, PercentChangeInCapacity)"
default = "ChangeInCapacity"
}
variable "scale_down_min_adjustment_magnitude" {
type = string
description = "Minimum number of tasks to scale down at a time "
default = "0"
}
variable "scale_up_min_adjustment_magnitude" {
type = string
description = "Minimum number of tasks to scale up at a time "
default = "0"
}
variable "high_evaluation_periods" {
type = string
description = "The number of periods over which data is compared to the high threshold"
default = "1"
}
variable "high_threshold" {
type = string
description = "The value against which the high statistic is compared"
default = "10"
}
variable "low_evaluation_periods" {
type = string
description = "The number of periods over which data is compared to the low threshold"
default = "1"
}
variable "low_threshold" {
type = string
description = "The value against which the low statistic is compared"
default = "10"
}
variable "scale_up_step_adjustment" {
type = list(object({ metric_interval_lower_bound = string, metric_interval_upper_bound = string, scaling_adjustment = string }))
description = "A set of adjustments that manage scaling. Requires at least one object inside the list containing: `metric_interval_lower_bound`, `metric_interval_upper_bound`, `scaling_adjustment`."
default = []
}
variable "scale_down_step_adjustment" {
type = list(object({ metric_interval_lower_bound = string, metric_interval_upper_bound = string, scaling_adjustment = string }))
description = "A set of adjustments that manage scaling. Requires at least one object inside the list containing: `metric_interval_lower_bound`, `metric_interval_upper_bound`, `scaling_adjustment`."
default = []
}