Skip to content

Commit

Permalink
Change default zip file location to ${path.module} instead of /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesJJ committed Dec 19, 2023
1 parent d8a068e commit bdafe71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resource "aws_iam_role_policy_attachment" "lambda_permissions" {
data "archive_file" "source_zip" {
type = "zip"
source_file = var.lambda_src_file == "" ? "${path.module}/src/lambda.py" : var.lambda_src_file
output_path = var.lambda_zip_file == "" ? "${path.module}/.tf_tmp--${local.account_id}--${var.lambda_function_name}.tmp.zip" : var.lambda_zip_file
output_path = var.lambda_zip_file == "" ? "${path.module}/.tf_tmp--${local.account_id}--${local.lambda_function_name}.tmp.zip" : var.lambda_zip_file
}

resource "aws_lambda_function" "lambda_deploy" {
Expand Down

0 comments on commit bdafe71

Please sign in to comment.