-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
78 lines (65 loc) · 1.8 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
variable "runtime" {
description = "Language to use for Lambda"
type = string
default = "provided.al2"
}
variable "architecture" {
description = "Architecture for lambda"
type = string
default = "arm64"
}
variable "handler" {
description = "Program entrypoint for Lambda"
type = string
default = "bootstrap"
}
variable "timeout" {
description = "Timeout after which Lamdba will terminate"
type = string
default = "10"
}
variable "source_bucket" {
description = "Bucket to use for loading Lambda source ZIP"
type = string
}
variable "source_prefix" {
description = "S3 prefix to use for loading Lambda ZIP"
type = string
default = ""
}
variable "source_version" {
description = "Version of Lambda ZIP to use"
type = string
}
variable "function_name" {
description = "Name for Lambda function"
type = string
}
variable "environment_variables" {
description = "Variables to provide for Lambda environment"
type = map(string)
default = {}
}
variable "access_policy_document" {
description = "IAM policy provided to Lambda role"
type = string
}
variable "source_types" {
description = "Source types which are allowed to invoke the Lambda. Must align with entries in source_arns variable"
type = list(string)
default = ["apigateway"]
}
variable "source_arns" {
description = "Source ARNs which are allowed to invoke the Lambda. Must align with entries in source_types variable"
type = list(string)
}
variable "cloudwatch_retention_in_days" {
description = "Days to retain cloudwatch logs"
type = number
default = 0
}
variable "kms_key_arn" {
description = "Use custom KMS key for Cloudwatch logs"
type = string
default = ""
}