Skip to content

Commit

Permalink
fix: keep http verb in api lambda name
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gavanier committed Sep 29, 2023
1 parent 372f13b commit ac3b1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "aws_lambda_function" "api_routes" {
if object.content_type == "application/zip"
}

function_name = replace(basename(each.key), "/\\..*/", "")
function_name = replace(trimsuffix(basename(each.key), ".zip"), ".", "-")
s3_bucket = aws_s3_bucket.api.id
s3_key = each.key
runtime = "nodejs18.x"
Expand Down

0 comments on commit ac3b1ec

Please sign in to comment.