Skip to content

Commit fa9cc0b

Browse files
committed
fix(local-artifact): use unique zip file names for better module for_each compatibility
1 parent 4a92263 commit fa9cc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artifact.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data "archive_file" "artifact_dir" {
2727

2828
type = "zip"
2929
source_dir = var.local_artifact.path
30-
output_path = "${path.module}/.artifacts/handler.zip"
30+
output_path = "${path.module}/.artifacts/${var.function_name}.zip"
3131
}
3232
# Upload the zipped artifact to S3
3333
resource "aws_s3_object" "artifact_dir" {

0 commit comments

Comments
 (0)