forked from amancevice/terraform-aws-slackbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
190 lines (153 loc) · 3.97 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
variable "base_path" {
description = "Slack API base path"
default = "/"
}
variable "event_bus_arn" {
description = "EventBridge bus ARN"
default = null
}
variable "event_post_rule_description" {
description = "Post Lambda EventBridge rule name"
default = "Capture events destined for post Lambda"
}
variable "event_post_rule_name" {
description = "Post Lambda EventBridge rule name"
default = "slack-post"
}
variable "event_source" {
description = "EventBridge source"
default = "slack"
}
variable "http_api_execution_arn" {
description = "API Gateway v2 HTTP API execution ARN"
}
variable "http_api_id" {
description = "API Gateway v2 HTTP API ID"
}
variable "http_api_integration_description" {
description = "API Gateway v2 HTTP API integration description"
default = "Slack request Lambda integration"
}
variable "kms_key_alias" {
description = "KMS Key alias"
default = null
}
variable "kms_key_deletion_window_in_days" {
description = "KMS Key deletion window"
default = 30
}
variable "kms_key_enable_key_rotation" {
description = "KMS Key rotation flag"
default = false
}
variable "kms_key_is_enabled" {
description = "KMS Key enabled flag"
default = true
}
variable "kms_key_description" {
description = "KMS Key description"
default = "Slackbot key"
}
variable "kms_key_policy_document" {
description = "KMS Key policy JSON document"
default = null
}
variable "kms_key_tags" {
description = "KMS Key resource tags"
type = map(string)
default = {}
}
variable "kms_key_usage" {
description = "KMS Key usage"
default = "ENCRYPT_DECRYPT"
}
variable "lambda_tags" {
description = "Lambda function resource tags"
type = map(string)
default = {}
}
variable "lambda_post_description" {
description = "Lambda function description"
default = "Slack API handler"
}
variable "lambda_post_function_name" {
description = "Lambda function name prefix"
}
variable "lambda_post_publish" {
description = "Lambda publish flag"
default = false
type = bool
}
variable "lambda_post_memory_size" {
description = "Lambda function memory size"
default = 1024
}
variable "lambda_post_runtime" {
description = "Lambda function runtime"
default = "python3.8"
}
variable "lambda_post_timeout" {
description = "Lambda function timeout in seconds"
default = 3
}
variable "lambda_proxy_description" {
description = "Lambda function description"
default = "Slack request handler"
}
variable "lambda_proxy_function_name" {
description = "Lambda function name prefix"
}
variable "lambda_proxy_publish" {
description = "Lambda publish flag"
default = false
type = bool
}
variable "lambda_proxy_memory_size" {
description = "Lambda function memory size"
default = 1024
}
variable "lambda_proxy_runtime" {
description = "Lambda function runtime"
default = "python3.8"
}
variable "lambda_proxy_timeout" {
description = "Lambda function timeout in seconds"
default = 3
}
variable "log_group_retention_in_days" {
description = "CloudWatch log group retention in days"
default = null
}
variable "log_group_tags" {
description = "CloudWatch log group resource tags"
type = map(string)
default = {}
}
variable "role_description" {
description = "Lambda role description"
default = "Slackbot resource access"
}
variable "role_name" {
description = "Lambda role name"
}
variable "role_path" {
description = "Lambda role path"
default = null
}
variable "role_tags" {
description = "Lambda role resource tags"
type = map(string)
default = {}
}
variable "secret_description" {
description = "SecretsManager Secret description"
default = "Slackbot secrets"
}
variable "secret_name" {
description = "SecretsManager secret name"
}
variable "secret_tags" {
description = "SecretsManager Secret resource tags"
type = map(string)
default = {}
}