-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
variables.tf
80 lines (71 loc) · 2.36 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
#------------------------------------------------------------------------------
# Misc
#------------------------------------------------------------------------------
variable "name_prefix" {
description = "Name prefix for resources on AWS"
}
variable "tags" {
type = map(string)
default = {}
description = "Resource tags"
}
#------------------------------------------------------------------------------
# AWS ECS SERVICE AUTOSCALING
#------------------------------------------------------------------------------
variable "ecs_cluster_name" {
description = "Name of the ECS cluster"
}
variable "ecs_service_name" {
description = "Name of the ECS service"
}
variable "max_cpu_threshold" {
description = "Threshold for max CPU usage"
default = "85"
type = string
}
variable "min_cpu_threshold" {
description = "Threshold for min CPU usage"
default = "10"
type = string
}
variable "max_cpu_evaluation_period" {
description = "The number of periods over which data is compared to the specified threshold for max cpu metric alarm"
default = "3"
type = string
}
variable "min_cpu_evaluation_period" {
description = "The number of periods over which data is compared to the specified threshold for min cpu metric alarm"
default = "3"
type = string
}
variable "max_cpu_period" {
description = "The period in seconds over which the specified statistic is applied for max cpu metric alarm"
default = "60"
type = string
}
variable "min_cpu_period" {
description = "The period in seconds over which the specified statistic is applied for min cpu metric alarm"
default = "60"
type = string
}
variable "scale_target_max_capacity" {
description = "The max capacity of the scalable target"
default = 5
type = number
}
variable "scale_target_min_capacity" {
description = "The min capacity of the scalable target"
default = 1
type = number
}
variable "sns_topic_arn" {
# Optional ARN of an SNS topic for sending notifications
type = string
description = "The ARN of an SNS topic to send notifications on alarm actions."
default = "" # Set an empty string as default to avoid potential errors
}
variable "cooldown" {
description = "Cooldown period for scaling actions"
type = number
default = 60 // Default value, adjust as needed
}