Skip to content

Commit 2febcad

Browse files
committed
add build lambdas script to accompany the quickstart guide
1 parent af7893b commit 2febcad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deployment/build-lambdas.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
BASE_DIR="lambdas"
4+
LAMBDA_DIRS=("presign" "list" "resize")
5+
6+
for dir in "${LAMBDA_DIRS[@]}"; do
7+
LAMBDA_PATH="$BASE_DIR/$dir"
8+
echo "Zipping Lambda function in $LAMBDA_PATH..."
9+
if [ -d "$LAMBDA_PATH" ]; then
10+
zip -r "$LAMBDA_PATH/lambda.zip" "$LAMBDA_PATH"/*
11+
else
12+
echo "Directory $LAMBDA_PATH not found!"
13+
exit 1
14+
fi
15+
done

0 commit comments

Comments
 (0)