forked from terraform-aws-modules/terraform-aws-notify-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
138 lines (115 loc) · 3.52 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
variable "create" {
description = "Whether to create all resources"
type = bool
default = true
}
variable "create_sns_topic" {
description = "Whether to create new SNS topic"
type = bool
default = true
}
variable "lambda_function_name" {
description = "The name of the Lambda function to create"
type = string
default = "notify_slack"
}
variable "lambda_description" {
description = "The description of the Lambda function"
type = string
default = null
}
variable "sns_topic_name" {
description = "The name of the SNS topic to create"
type = string
}
variable "sns_topic_kms_key_id" {
description = "ARN of the KMS key used for enabling SSE on the topic"
type = string
default = ""
}
variable "slack_webhook_url" {
description = "The URL of Slack webhook"
type = string
}
variable "slack_channel" {
description = "The name of the channel in Slack for notifications"
type = string
}
variable "slack_username" {
description = "The username that will appear on Slack messages"
type = string
}
variable "slack_emoji" {
description = "A custom emoji that will appear on Slack messages"
type = string
default = ":aws:"
}
variable "kms_key_arn" {
description = "ARN of the KMS key used for decrypting slack webhook url"
type = string
default = ""
}
variable "log_events" {
description = "Boolean flag to enabled/disable logging of incoming events"
default = false
}
variable "reserved_concurrent_executions" {
description = "The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations"
type = number
default = -1
}
variable "cloudwatch_log_group_retention_in_days" {
description = "Specifies the number of days you want to retain log events in log group for Lambda."
type = number
default = 0
}
variable "cloudwatch_log_group_kms_key_id" {
description = "The ARN of the KMS Key to use when encrypting log data for Lambda"
type = string
default = null
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
variable "iam_role_tags" {
description = "Additional tags for the IAM role"
type = map(string)
default = {}
}
variable "iam_role_boundary_policy_arn" {
description = "The ARN of the policy that is used to set the permissions boundary for the role"
type = string
default = null
}
variable "iam_role_name_prefix" {
description = "A unique role name beginning with the specified prefix"
type = string
default = "lambda"
}
variable "iam_role_policy_name_prefix" {
description = "A unique policy name beginning with the specified prefix"
type = string
default = "lambda-policy-"
}
variable "lambda_function_tags" {
description = "Additional tags for the Lambda function"
type = map(string)
default = {}
}
variable "sns_topic_tags" {
description = "Additional tags for the SNS topic"
type = map(string)
default = {}
}
variable "cloudwatch_log_group_tags" {
description = "Additional tags for the Cloudwatch log group"
type = map(string)
default = {}
}
variable "subsription_filter_policy" {
description = "(Optional) A valid filter policy that will be used in the subscription to filter messages seen by the target resource."
type = string
default = null
}