-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.tf
156 lines (125 loc) · 4.66 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
variable "adjustment_type_down" {
description = "Autoscaling policy down adjustment type (ChangeInCapacity, PercentChangeInCapacity)"
default = "ExactCapacity"
}
variable "adjustment_type_up" {
description = "Autoscaling policy up adjustment type (ChangeInCapacity, PercentChangeInCapacity)"
default = "ChangeInCapacity"
}
variable "cluster_name" {
description = "Name of ECS cluster that service is in"
}
variable "service_name" {
description = "Name of ECS service to autoscale"
}
variable "high_eval_periods" {
description = "The number of periods over which data is compared to the high threshold"
default = "1"
}
variable "high_period_secs" {
description = "The period in seconds over which the high statistic is applied"
default = "60"
}
variable "high_threshold" {
description = "The value against which the high statistic is compared"
default = "1000"
}
variable "high_big_threshold" {
description = "The value against which the high statistic is compared"
default = "0"
}
variable "scale_big_up_count" {
description = "The value against which the high statistic is compared"
default = "20"
}
variable "scale_big_up_cooldown" {
description = "The value against which the high statistic is compared"
default = "600"
}
variable "stuck_eval_minutes" {
description = "The number of periods/minute before triggering alert"
default = "300"
}
variable "low_eval_periods" {
description = "The number of periods over which data is compared to the low threshold"
default = "1"
}
variable "low_period_secs" {
description = "The period in seconds over which the low statistic is applied"
default = "60"
}
variable "low_threshold" {
description = "The value against which the low statistic is compared"
default = "100"
}
variable "max_capacity" {
description = "Maximum number of tasks to scale to"
default = "5"
}
variable "min_capacity" {
description = "Minimum number of tasks to scale to"
default = "0"
}
variable "queue_name" {
description = "Name of SQS queue to monitor"
}
variable "queue_up_threshold" {
description = "Threshold for queue_time = ((Queue Size * Worker Timing) / (number of Current Tasks * number of Workers per Task))"
default = "0"
}
variable "queue_down_threshold" {
description = "Threshold for queue_time = ((Queue Size * Worker Timing) / (number of Current Tasks * number of Workers per Task))"
default = "0"
}
variable "queue_worker_timing" {
description = "Worker timing in calculation queue_time_threshold"
default = "1"
}
variable "queue_task_worker_count" {
description = "number of Workers per Task in calculation queue_time_threshold"
default = "4"
}
variable "scale_down_cooldown" {
description = "The amount of time, in seconds, after a scaling down completes and before the next scaling activity can start"
default = "60"
}
variable "scale_down_count" {
description = "The number of members by which to scale down, when the adjustment bounds are breached. Should always be negative value"
default = "-3"
}
variable "scale_down_lower_bound" {
description = "The lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity"
default = ""
}
variable "scale_down_upper_bound" {
description = "The upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as infinity"
default = "0"
}
variable "scale_down_min_adjustment_magnitude" {
description = "Minimum number of tasks to scale down at a time "
default = "0"
}
variable "scale_up_cooldown" {
description = "The amount of time, in seconds, after a scaling up completes and before the next scaling up can start"
default = "60"
}
variable "scale_up_count" {
description = "The number of members by which to scale up, when the adjustment bounds are breached. Should always be positive value"
default = "5"
}
variable "scale_up_lower_bound" {
description = "The lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity"
default = "0"
}
variable "scale_up_upper_bound" {
description = "The upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as infinity"
default = ""
}
variable "scale_up_min_adjustment_magnitude" {
description = "Minimum number of tasks to scale up at a time "
default = "0"
}
variable "sns_stuck_alarm_arn" {
description = "SNS autoscaling stuck at max alarm arn"
default = ""
}