Skip to content

Commit 5f7a7f9

Browse files
author
Mark Roth
committed
memory size variable
1 parent 4154577 commit 5f7a7f9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ resource "aws_lambda_function" "api_lambda" {
248248
runtime = var.runtime
249249
publish = true
250250
timeout = var.timeout
251+
memory_size = var.memory_size
251252

252253
dynamic "environment" {
253254
for_each = var.environment_variables != null ? [1] : []

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,10 @@ variable "timeout" {
115115
type = number
116116
description = "Timeout (in seconds) for lambda. Defaults to 3 (terraform default"
117117
default = 3
118+
}
119+
120+
variable "memory_size" {
121+
type = number
122+
description = "Memory Size of the lambda"
123+
default = 128
118124
}

0 commit comments

Comments
 (0)