-
Notifications
You must be signed in to change notification settings - Fork 8
/
variables.tf
57 lines (50 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
variable "cc_list" {
description = "Comma-separated list of email addresses to CC on this case. At least one email address is required."
type = string
}
variable "communication_body" {
description = "Text for body of the communication sent to support. The variable 'account_id' can be used within the text if preceded by a dollar sign and optionally enclosed by curly braces."
type = string
}
variable "event_types" {
description = "Event types that will trigger this lambda"
type = set(string)
default = [
"CreateAccountResult",
"InviteAccountToOrganization",
]
validation {
condition = alltrue([for event in var.event_types : contains(["CreateAccountResult", "InviteAccountToOrganization"], event)])
error_message = "Supported event_types include only: CreateAccountResult, InviteAccountToOrganization"
}
}
variable "lambda" {
description = "Map of any additional arguments for the upstream lambda module. See <https://github.com/terraform-aws-modules/terraform-aws-lambda>"
type = object({
artifacts_dir = optional(string, "builds")
create_package = optional(bool, true)
ephemeral_storage_size = optional(number)
ignore_source_code_hash = optional(bool, true)
local_existing_package = optional(string)
recreate_missing_package = optional(bool, false)
s3_bucket = optional(string)
s3_existing_package = optional(map(string))
s3_prefix = optional(string)
store_on_s3 = optional(bool, false)
})
default = {}
}
variable "log_level" {
default = "info"
description = "Log level of the lambda output, one of: debug, info, warning, error, critical"
type = string
}
variable "subject" {
description = "Text for 'Subject' field of the communication sent to support. The variable 'account_id' can be used within the text if preceded by a dollar sign and optionally enclosed by curly braces."
type = string
}
variable "tags" {
default = {}
description = "Tags that are passed to resources"
type = map(string)
}