-
Notifications
You must be signed in to change notification settings - Fork 25
/
variables.tf
141 lines (118 loc) · 2.96 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
###############
# GENERAL #
###############
variable "name" {
description = "Slack app name"
type = string
}
variable "log_retention_in_days" {
description = "Slackbot log retention in days"
type = number
default = 14
}
variable "oauth_timeout_seconds" {
description = "TTL for OAuth state"
type = number
default = 300
}
variable "tags" {
description = "Slackbot tags"
type = map(string)
default = null
}
###########
# API #
###########
variable "api_base_path" {
description = "Slack API base path"
type = string
default = null
}
variable "api_log_format" {
description = "Slack API log format"
type = map(string)
default = {
caller = "$context.identity.caller"
extendedRequestId = "$context.extendedRequestId"
httpMethod = "$context.httpMethod"
ip = "$context.identity.sourceIp"
integrationError = "$context.integration.error"
protocol = "$context.protocol"
requestId = "$context.requestId"
requestTime = "$context.requestTime"
resourcePath = "$context.resourcePath"
responseLength = "$context.responseLength"
status = "$context.status"
user = "$context.identity.user"
}
}
###########
# DNS #
###########
variable "domain_certificate_arn" {
description = "Slack API custom domain ACM certificate ARN"
type = string
}
variable "domain_name" {
description = "Slack API custom domain"
type = string
}
variable "domain_zone_id" {
description = "Slack API Route53 hosted zone ID"
type = string
}
##############
# LAMBDA #
##############
variable "lambda_runtime" {
description = "Lambda function runtime"
type = string
default = "python3.13"
}
variable "lambda_snap_start_enabled" {
description = "Lambda function SnapStart enabled"
type = bool
default = false
}
#############
# SLACK #
#############
variable "slack_signing_secret" {
description = "Slackbot signing secret SSM parameter name"
type = string
sensitive = true
}
variable "slack_client_id" {
description = "Slackbot OAuth client ID"
type = string
}
variable "slack_client_secret" {
description = "Slackbot OAuth client secret SSM parameter name"
type = string
sensitive = true
}
variable "slack_error_uri" {
description = "Slackbot OAuth error URI"
type = string
default = ""
}
variable "slack_scope" {
description = "Slackbot OAuth scopes"
type = string
default = ""
}
variable "slack_success_uri" {
description = "Slackbot OAuth success URI"
type = string
default = "slack://open"
}
variable "slack_user_scope" {
description = "Slackbot OAuth user scopes"
type = string
default = ""
}
variable "slack_token" {
description = "Slackbot OAuth token SSM parameter name"
type = string
sensitive = true
}