Skip to content

Commit 81c9af9

Browse files
committed
zip in prj
1 parent 597b374 commit 81c9af9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

β€Žterraform/package_lambda.shβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ echo "πŸ“‚ Copying additional files to $BUILD_DIR..."
5151
echo "πŸ“¦ Creating deployment package..."
5252
echo "πŸ“‚ cd $BUILD_DIR"
5353
cd "$BUILD_DIR"
54-
echo "Zipping contents to $ZIP_FILE..."
55-
zip -r "$ZIP_FILE" . -x "$ZIP_FILE"
54+
echo "Zipping contents to ../$ZIP_FILE..."
55+
zip -r "$ZIP_FILE" . -x "../$ZIP_FILE"
5656
echo "πŸ“‚ Returning to project directory... cd.."
5757
cd ..
5858

@@ -64,6 +64,6 @@ echo "πŸ“‚ Contents of build directory: $(ls -1 $BUILD_DIR/$ZIP_FILE)"
6464
echo "πŸ“‚ Contents of parent directory: $(ls -1 $PROJECT_DIR/$ZIP_FILE)"
6565

6666
# lis contents of the zip file
67-
echo "πŸ“¦ Contents of the zip file: $(unzip -l $BUILD_DIR/$ZIP_FILE | tail -n +4 | head -n -2)"
67+
echo "πŸ“¦ Contents of the zip file: $(unzip -l $ZIP_FILE | tail -n +4 | head -n -2)"
6868

6969
echo "βœ… Lambda package created: $ZIP_FILE"

β€Žterraform/redis_sync_lambda.tfβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "null_resource" "package_lambda" {
5353
data "archive_file" "redis_sync_lambda_zip" {
5454
type = "zip"
5555
source_dir = "${local.build_dir}"
56-
output_path = "${local.build_dir}/${local.zip_file_name}"
56+
output_path = "${local.redis_sync_dir}/${local.zip_file_name}"
5757

5858
depends_on = [null_resource.package_lambda]
5959
}

0 commit comments

Comments
Β (0)