File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44echo " 🚀 Packaging Lambda1..."
55
6- PROJECT_DIR=" ${1:- .} " # Default to current dir if not provided
6+ PROJECT=" ${1:- .} "
7+ PROJECT_DIR=$( realpath " $PROJECT " ) # Default to current dir if not provided
78BUILD_DIR=" ${2:- build} " # Default build directory if not provided
89ZIP_FILE=" ${3:- lambda_package.zip} " # Default zip file name if not provided
910echo " Project directory: $PROJECT_DIR "
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ resource "null_resource" "chmod_package_lambda" {
3434
3535resource "null_resource" "package_lambda" {
3636 provisioner "local-exec" {
37- command = " chmod +x ${ path . module } /package_lambda.sh && ${ path . module } /package_lambda.sh ${ local . redis_sync_dir } ${ path . module } /build "
37+ command = " chmod +x ${ path . module } /package_lambda.sh && ${ path . module } /package_lambda.sh ${ local . redis_sync_dir } "
3838 }
3939 depends_on = [null_resource. chmod_package_lambda ]
4040 triggers = {
You can’t perform that action at this time.
0 commit comments