-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
63 lines (55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
variable "assume_role_name" {
description = "Name of IAM role to assume the target account (case sensitive)"
type = string
}
variable "role_name" {
description = "Name of the IAM role to create in the target account (case sensitive)"
type = string
}
variable "role_permission_policy" {
description = "AWS-managed permission policy name to attach to the role (case sensitive)"
type = string
}
variable "trust_policy_json" {
description = "JSON-formatted string containing the role trust policy"
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)
runtime = optional(string, "python3.12")
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 "tags" {
default = {}
description = "Tags that are passed to resources"
type = map(string)
}