This repository was archived by the owner on May 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvariables.tf
More file actions
123 lines (103 loc) · 3.44 KB
/
variables.tf
File metadata and controls
123 lines (103 loc) · 3.44 KB
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
117
118
119
120
121
122
123
variable "cloudwatch_rule_description" {
type = string
description = "The description of the CloudWatch Events rule used to schedule the execution of the Lambda."
default = ""
}
variable "cloudwatch_rule_name" {
type = string
description = "The name of the CloudWatch Events rule used to schedule the execution of the Lambda. Defaults to the name of the Lambda function."
default = ""
}
variable "cloudwatch_schedule_expression" {
type = string
description = "The cron or rate expression for the CloudWatch Events rule that triggers the execution of the Lambda. If blank, then no execution is scheduled."
default = ""
}
variable "cloudwatch_target_id" {
type = string
description = "The id of the CloudWatch Events target. Defaults to the name of the Lambda function."
default = ""
}
variable "environment_variables" {
type = map(string)
description = "A map that defines environment variables for the Lambda function."
default = {}
}
variable "event_sources" {
type = list(object({
event_source_arn = string
}))
description = "A list of event sources"
default = []
}
variable "execution_role_name" {
type = string
}
variable "execution_role_policy_document" {
type = string
description = "The contents of the IAM policy attached to the IAM Execution role used by the Lambda. If not defined, then creates the policy with permissions to log to CloudWatch Logs."
default = ""
}
variable "execution_role_policy_name" {
type = string
description = "The name of the IAM policy attached to the IAM Execution role used by the Lambda. If not defined, then uses the value of \"execution_role_name\"."
default = ""
}
variable "filename" {
type = string
description = "The path to the function's deployment package within the local filesystem. If defined, the s3_-prefixed options cannot be used."
}
variable "function_name" {
type = string
description = "A unique name for your Lambda Function."
}
variable "function_description" {
type = string
description = "Description of what your Lambda Function does."
default = ""
}
variable "handler" {
type = string
description = "The function entrypoint in your code."
}
variable "kms_key_arn" {
type = string
description = "The ARN of the KMS key used to encrypt environment variables."
default = ""
}
variable "layers" {
type = list(string)
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function."
default = []
}
variable "memory_size" {
type = number
description = "Amount of memory in MB your Lambda Function can use at runtime."
default = 128
}
variable "runtime" {
type = string
description = "The identifier of the function's runtime."
}
variable "security_group_ids" {
type = list(string)
description = "List of security group IDs associated with the Lambda function."
default = []
}
variable "subnet_ids" {
type = list(string)
description = "List of subnet IDs associated with the Lambda function."
default = []
}
variable "tags" {
type = map(string)
description = "A mapping of tags to assign to the Lambda Function."
default = {
Automation = "Terraform"
}
}
variable "timeout" {
type = number
description = "The amount of time your Lambda Function has to run in seconds."
default = 3
}