Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
data "archive_file" "zip_file_for_lambda" {
type = "zip"
output_path = "${var.name}.zip"
output_path = "${var.local_file_dir}/${var.name}.zip"

dynamic "source" {
for_each = distinct(flatten([
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ variable file_globs {
description = "list of files or globs that you want included from the lambda_code_source_dir"
}

variable local_file_dir {
description = "A path to the directory to store plan time generated local files"
default = "."
}

variable runtime {
description = "The runtime of the lambda function"
default = "nodejs10.x"
Expand Down