Skip to content

Commit

Permalink
add build lambdas script to accompany the quickstart guide
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyg210 committed Dec 13, 2024
1 parent af7893b commit 2febcad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deployment/build-lambdas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

BASE_DIR="lambdas"
LAMBDA_DIRS=("presign" "list" "resize")

for dir in "${LAMBDA_DIRS[@]}"; do
LAMBDA_PATH="$BASE_DIR/$dir"
echo "Zipping Lambda function in $LAMBDA_PATH..."
if [ -d "$LAMBDA_PATH" ]; then
zip -r "$LAMBDA_PATH/lambda.zip" "$LAMBDA_PATH"/*
else
echo "Directory $LAMBDA_PATH not found!"
exit 1
fi
done

0 comments on commit 2febcad

Please sign in to comment.