Skip to content

Commit

Permalink
data to resource
Browse files Browse the repository at this point in the history
  • Loading branch information
hskiba committed Sep 18, 2024
1 parent 11229df commit 8b08cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,10 @@ data "http" "lambda_zip" {
url = local.download_url
}

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

content = data.http.lambda_zip.response_body
content_base64 = data.http.lambda_zip.response_body_base64
}

resource "aws_lambda_function" "database_lambda" {
Expand Down

0 comments on commit 8b08cf8

Please sign in to comment.