forked from spring-media/terraform-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
95 lines (77 loc) · 3.51 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# You must provide a value for each of these parameters.
# ---------------------------------------------------------------------------------------------------------------------
variable "filename" {
description = "The path to the function's deployment package within the local filesystem."
}
variable "function_name" {
description = "A unique name for your Lambda Function."
}
variable "handler" {
description = "The function entrypoint in your code."
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "description" {
description = "Description of what your Lambda Function does."
default = ""
}
variable "environment" {
description = "Environment (e.g. env variables) configuration for the Lambda function enable you to dynamically pass settings to your function code and libraries"
type = map(map(string))
default = {}
}
variable "event" {
description = "Event source configuration which triggers the Lambda function. Supported events: cloudwatch-scheduled-event, dynamodb, s3, sns"
type = map(string)
default = {}
}
variable "kms_key_arn" {
description = "The Amazon Resource Name (ARN) of the KMS key to decrypt AWS Systems Manager parameters."
default = ""
}
variable "log_retention_in_days" {
description = "Specifies the number of days you want to retain log events in the specified log group. Defaults to 14."
default = 14
}
variable "logfilter_destination_arn" {
description = "The ARN of the destination to deliver matching log events to. Kinesis stream or Lambda function ARN."
default = ""
}
variable "memory_size" {
description = "Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128."
default = 128
}
variable "publish" {
description = "Whether to publish creation/change as new Lambda Function Version. Defaults to true."
default = true
}
variable "reserved_concurrent_executions" {
description = "The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1."
default = "-1"
}
variable "runtime" {
description = "The runtime environment for the Lambda function you are uploading. Defaults to go1.x"
default = "go1.x"
}
variable "ssm_parameter_names" {
description = "List of AWS Systems Manager Parameter Store parameters this Lambda will have access to. In order to decrypt secure parameters, a kms_key_arn needs to be provided as well."
default = []
}
variable "tags" {
description = "A mapping of tags to assign to the Lambda function."
type = map(string)
default = {}
}
variable "timeout" {
description = "The amount of time your Lambda Function has to run in seconds. Defaults to 3."
default = 3
}
variable "vpc_config" {
description = "Provide this to allow your function to access your VPC (if both 'subnet_ids' and 'security_group_ids' are empty then vpc_config is considered to be empty or unset, see https://docs.aws.amazon.com/lambda/latest/dg/vpc.html for details)."
type = map(list(string))
default = {}
}