-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
32 lines (27 loc) · 952 Bytes
/
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
variable "frequency" {
description = "Frequency to run the lambda (cron formating is also accepted)"
type = string
default = "rate(1 day)"
}
variable "name" {
description = "Name prefix to be applied to all resources"
type = string
default = "cost-alert"
}
variable "image_uri" {
description = "URI of the repo where the lambda image is stored"
type = string
}
variable "encripted_slack_webhook_url" {
description = "Encript the webhook URL with KMS, and use it in this variable. See readme.md"
type = string
}
variable "alert_threshold" {
description = "Integer representing the % above which alerts will be sent to slack"
type = number
}
variable "alerts_only" {
description = "The lambda will only post messages if a threshold is exceeded (alerts only mode). If set to false (a.k.a. scheduled mode) messages will be sent regularly"
type = bool
default = true
}