Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiplesa committed Jan 15, 2025
1 parent 8240280 commit 4aff34b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/lambda@edge/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ resource "aws_lambda_function" "default" {
function_name = module.function_label[each.key].id
runtime = each.value.runtime
handler = each.value.handler
memory_size = each.value.memory_size != null ? each.value.memory_size : 128
timeout = each.value.timeout != null ? each.value.timeout : 3
memory_size = each.value.memory_size
timeout = each.value.timeout
role = module.role[each.key].arn
filename = each.value.source_zip != null ? data.local_file.lambda_zip[each.key].filename : data.archive_file.lambda_zip[each.key].output_path
source_code_hash = each.value.source_zip != null ? sha256(data.local_file.lambda_zip[each.key].content_base64) : data.archive_file.lambda_zip[each.key].output_base64sha256
Expand Down
4 changes: 2 additions & 2 deletions modules/lambda@edge/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ variable "functions" {
source_zip = optional(string)
runtime = string
handler = string
memory_size = optional(number)
timeout = optional(number)
memory_size = number
timeout = number
event_type = string
include_body = bool
}))
Expand Down

0 comments on commit 4aff34b

Please sign in to comment.