-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
53 lines (44 loc) · 1.68 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
# Create variables here
variable "create_sns_subscription" {
description = "Set to true to create a sns subscription to the topic for created alarms"
default = true
}
variable "use_sns" {
description = "Use SNS for notifications"
default = true
}
variable "sns_arn" {
type = string
description = "Full arn of the desired sns topic to subscribe alarm to (Example: arn:aws:sns:region-name:XXXX:cloudwatch-topic)"
default = "arn:aws:sns:region-name:XXXX:cloudwatch-topic"
}
variable "cluster_name" {
type = string
description = "Cluster name of ECS service to be alerted on (Example: service-production)"
default = "service-production"
}
variable "service_name" {
type = string
description = "Service name of ECS service to be alerted on (Example: appname-api, appname-job_queue)"
default = "appname-api"
}
variable "desired_task_threshold" {
type = string
description = "Desired task threshold that will be compared in alert (Example: 1 for alerts below 1 running task in ECS Service)"
default = "1"
}
variable "cpu_utilization_threshold" {
type = string
description = "Desired CPU Utilization threshold that will be compared in alert (Example: 90 for 90% average over 60 seconds in ECS Service)"
default = "90"
}
variable "alert_email" {
type = string
description = "Specify the email you'd like the alerts to go to (Unneccessary if create_sns_subscription is false)"
default = "alerts@synapsestudios.com"
}
variable "env" {
type = string
description = "Specify the environment you're deploying to (Example: staging, dev, test) (leave null for production)"
default = null
}