File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ echo "π Copying additional files to $BUILD_DIR..."
5151echo " π¦ Creating deployment package..."
5252echo " π cd $BUILD_DIR "
5353cd " $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 "
5656echo " π Returning to project directory... cd.."
5757cd ..
5858
@@ -64,6 +64,6 @@ echo "π Contents of build directory: $(ls -1 $BUILD_DIR/$ZIP_FILE)"
6464echo " π 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
6969echo " β
Lambda package created: $ZIP_FILE "
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ resource "null_resource" "package_lambda" {
5353data "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}
You canβt perform that action at this time.
0 commit comments