Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
hskiba committed Sep 18, 2024
1 parent 3af933a commit 981e140
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -422,16 +422,16 @@ data "http" "lambda_zip" {
url = local.download_url
}

resource "local_file" "lambda_zip" {
resource "local_sensitive_file" "lambda_zip" {
filename = "${path.module}/lambda_function.zip"

content_base64 = data.http.lambda_zip.response_body_base64
}

resource "aws_lambda_function" "database_lambda" {
function_name = var.database_lambda_function_name
filename = local_file.lambda_zip.filename
source_code_hash = local_file.lambda_zip.content_base64sha512
filename = local_sensitive_file.lambda_zip.filename
source_code_hash = local_sensitive_file.lambda_zip.content_base64sha512
handler = "bootstrap"
runtime = "provided.al2023"
role = aws_iam_role.golang_lambda_exec.arn
Expand Down

0 comments on commit 981e140

Please sign in to comment.