-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
149 lines (124 loc) · 3.63 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
variable "name" {
type = string
description = "Name of Lambda function"
}
variable "environment" {
type = string
description = "Environment"
}
variable "global_tags" {
type = map(string)
description = "Global tags to add to all resources created by this module"
default = {}
}
variable "lambda_s3_bucket" {
type = string
description = "S3 bucket with lambda code, ignored if lambda_source is defined"
default = null
}
variable "lambda_s3_key" {
type = string
description = "S3 key with lambda code, ignored if lambda_source is defined"
default = null
}
variable "lambda_s3_version" {
type = string
description = "S3 object version with lambda code, ignored if lambda_source is defined"
default = null
}
variable "lambda_layer_s3_bucket" {
type = string
description = "S3 bucket with lambda layer code, ignored if lambda_source is defined"
default = null
}
variable "lambda_layer_s3_key" {
type = string
description = "S3 key with lambda layer code, ignored if lambda_source is defined"
default = null
}
variable "lambda_layer_s3_version" {
type = string
description = "S3 object version with lambda layer code, ignored if lambda_source is defined"
default = null
}
variable "lambda_description" {
type = string
description = "Description of the Lambda Function"
}
variable "lambda_handler" {
type = string
description = "Lamda function handler"
default = "lambda_function.lambda_handler"
}
variable "lambda_runtime" {
type = string
description = "Runtime and version"
default = "python3.8"
}
variable "lambda_environment_vars" {
type = map(string)
description = "Map of environment variables to pass top Lambda function"
default = {}
}
variable "lambda_memory_size" {
type = number
description = "Amount of RAM the Lambda Function can use"
default = 128
}
variable "lambda_timeout" {
type = number
description = "Amount of time the Lambda Function has to run"
default = 3
}
variable "lambda_security_group_ids" {
type = list(string)
description = "Security Group(s) associated with the Lambda Function"
default = []
}
variable "lambda_subnet_ids" {
type = list(string)
description = "Subnets the Lambda Function is associated with"
default = []
}
variable "s3_bucket" {
type = string
description = "S3 bucket to receive data from Lambda Function"
}
variable "ssm_config_path" {
type = string
description = "SSM Path for configuration fro this lambda"
}
variable "lambda_input" {
type = any
description = "Converted to JSON Cloudwatch Event Input Document for Lambda"
default = {}
}
variable "event_schedule" {
type = any
description = "How often to trigger the Lambda (either minutes, or cron)"
}
variable "sns_topic" {
type = string
description = "SNS Topic to send alarms to (if defined)"
default = ""
}
variable "cloudwatch_logs_retention_in_days" {
type = number
default = null
description = "How long to retain Cloudwatch Logs for this function, null is indefinite"
}
variable "extra_iam_statements" {
type = list(map(string))
default = []
description = "List of additional IAM rules to add to Lambda role, format: [{'Actions': ['foo.*','bar.publish'], 'Resources': '*'}]"
}
variable "anomaly_band_width" {
type = number
default = 1
description = "This number adjusts the width of the anomaly detection range"
}
variable "snowpipe_external_id" {
type = string
description = "Snowpipe external ID"
default = null
}