File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ echo "🚀 Packaging Lambda1..."
55
66PROJECT_DIR=" ${1:- .} " # Default to current dir if not provided
77BUILD_DIR=" ${2:- build} " # Default build directory if not provided
8+ ZIP_FILE=" ${3:- lambda_package.zip} " # Default zip file name if not provided
89echo " Project directory: $PROJECT_DIR "
910echo " Build directory: $BUILD_DIR "
1011
@@ -45,8 +46,8 @@ cp pyproject.toml poetry.lock "$BUILD_DIR"
4546echo " 📦 Creating deployment package..."
4647echo " 📂 cd $BUILD_DIR "
4748cd " $BUILD_DIR "
48- echo " Zipping contents to lambda_package.zip ..."
49- zip -r ../lambda_package.zip .
49+ echo " Zipping contents to $ZIP_FILE ..."
50+ zip -r ./ $ZIP_FILE .
5051echo " 📂 Returning to project directory... cd.."
5152cd ..
5253
@@ -58,4 +59,4 @@ echo "📂 Contents of build directory: $(ls -1 $BUILD_DIR)"
5859echo " 📂 Contents of project directory: $( ls -1 $PROJECT_DIR ) "
5960echo " 📂 Contents of parent directory: $( ls -1 $PROJECT_DIR /..) "
6061
61- echo " ✅ Lambda package created: lambda_package.zip "
62+ echo " ✅ Lambda package created: $ZIP_FILE "
You can’t perform that action at this time.
0 commit comments