We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4154577 commit 5f7a7f9Copy full SHA for 5f7a7f9
main.tf
@@ -248,6 +248,7 @@ resource "aws_lambda_function" "api_lambda" {
248
runtime = var.runtime
249
publish = true
250
timeout = var.timeout
251
+ memory_size = var.memory_size
252
253
dynamic "environment" {
254
for_each = var.environment_variables != null ? [1] : []
variables.tf
@@ -115,4 +115,10 @@ variable "timeout" {
115
type = number
116
description = "Timeout (in seconds) for lambda. Defaults to 3 (terraform default"
117
default = 3
118
+}
119
+
120
+variable "memory_size" {
121
+ type = number
122
+ description = "Memory Size of the lambda"
123
+ default = 128
124
}
0 commit comments