forked from noyonict/aws-chatbot-slack-channel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
49 lines (39 loc) · 2.04 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
variable "configuration_name" {
type = string
description = "The name of the configuration/slack channel. Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*"
}
variable "guardrail_policies" {
type = list(string)
default = ["arn:aws:iam::aws:policy/AdministratorAccess"]
description = "The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set."
}
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 "logging_level" {
type = string
description = "Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels include ERROR, INFO, or NONE."
default = "ERROR"
}
variable "user_role_required" {
type = bool
default = false
description = "Enables use of a user role requirement in your chat configuration."
}
variable "tags" {
type = map(any)
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
default = {
"Terraform" : true
}
}
variable "kms_key" {
type = string
description = "The KMS key used for encryption. If this property is not specified, the AWS managed KMS key (aws/alias/sns) is used for encryption by default."
default = ""
}