This commit is contained in:
2025-04-29 21:13:21 +02:00
parent 84b1aa00d4
commit 444fc0614c
25 changed files with 877 additions and 150 deletions

30
lambda/dev/deploy.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# Variables
FUNCTION_NAME="BreezLambda" # Match the FunctionName in CloudFormation
ZIP_FILE="lambda.zip"
# Install dependencies
echo "Installing dependencies..."
mkdir -p package
pip install -r requirements.txt -t package/
# Package the function
echo "Packaging the function..."
cp lambda_function.py package/
cd package
zip -r ../$ZIP_FILE .
cd ..
# Update Lambda function code directly
echo "Updating Lambda function code..."
aws lambda update-function-code \
--function-name $FUNCTION_NAME \
--zip-file fileb://$ZIP_FILE
# Clean up
rm -rf package
rm $ZIP_FILE
echo "Deployment complete!"