forked from rribeiro1/terraform-aws-budget-alarms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
61 lines (52 loc) · 2.09 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
variable "account_name" {
description = "Specifies the name of the AWS account"
type = string
default = ""
}
variable "account_budget_limit" {
description = "Set the budget limit for the AWS account"
type = string
}
variable "budget_limit_unit" {
description = "The unit of measurement used for the budget forecast, actual spend, or budget threshold."
type = string
default = "USD"
}
variable "budget_time_unit" {
description = "The length of time until a budget resets the actual and forecasted spend. Valid values: `MONTHLY`, `QUARTERLY`, `ANNUALLY`."
type = string
default = "MONTHLY"
}
variable "services" {
description = "Define the list of services and their limit of budget"
type = map(object({
budget_limit = string
}))
}
variable "notifications" {
description = "Can be used multiple times to configure budget notification thresholds"
type = map(object({
comparison_operator = string
threshold = number
threshold_type = string
notification_type = string
}))
}
variable "slack_channel_id" {
type = string
description = "The ID of the Slack channel. To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ."
}
variable "slack_workspace_id" {
type = string
description = "The ID of the Slack workspace authorized with AWS Chatbot. To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-4 in [Setting Up AWS Chatbot with Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the AWS Chatbot User Guide."
}
variable "create_slack_integration" {
type = string
description = "Whether to create the Slack integration through AWS Chatbot or not."
default = true
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags"
}