This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
variables.tf
116 lines (93 loc) · 4.42 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# You must provide a value for each of these parameters.
# ---------------------------------------------------------------------------------------------------------------------
variable "function_name" {
description = "A unique name for your Lambda Function."
}
variable "handler" {
description = "The function entrypoint in your code."
}
variable "runtime" {
description = "The runtime environment for the Lambda function you are uploading."
}
# ---------------------------------------------------------------------------------------------------------------------
# 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 "filename" {
description = "The path to the function's deployment package within the local filesystem. If defined, The s3_-prefixed options cannot be used."
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 false."
default = false
}
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 "s3_bucket" {
description = "The S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function."
default = ""
}
variable "s3_key" {
description = " The S3 key of an object containing the function's deployment package. Conflicts with filename."
default = ""
}
variable "s3_object_version" {
description = "The object version containing the function's deployment package. Conflicts with filename."
default = ""
}
variable "source_code_hash" {
description = "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is filebase64sha256('file.zip') where 'file.zip' is the local filename of the lambda function source archive."
default = ""
}
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 = {}
}