Skip to content

Commit

Permalink
Update lambdas.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
harinik05 authored Feb 24, 2024
1 parent 9ed24aa commit 49e6c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambdas.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ output_path = "./nodejs/zipped_folder.zip"
resource "aws_lambda_function" "terraform_lambda_func" {
filename = "./python/hello-python.zip"
function_name = "Spacelift_Test_Lambda_Function"
role = "arn:aws:iam::720479364235:role/service-role/mylambdarole"
role = "arn:aws:iam::accountnum:role/service-role/mylambdarole"
handler = "index.lambda_handler"
runtime = "python3.8"
}

resource "aws_lambda_function" "terraform_lambda_func_second" {
filename = "./nodejs/zipped_folder.zip"
function_name = "BucketAndDBCounter"
role = "arn:aws:iam::720479364235:role/service-role/mylambdarole"
role = "arn:aws:iam::accountnum:role/service-role/mylambdarole"
handler = "index.handler"
runtime = "nodejs14.x"
//source_code_hash = filebase64("./nodejs/zipped_folder.zip") # Use filebase64 function to calculate hash

}
}

0 comments on commit 49e6c8f

Please sign in to comment.