Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion stats_lambda/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ help:


stats.zip: stats.py
zip -r9 stats.zip stats.py
# AWS Lambda NOW expects the script to be named as lambda_function.py
cp stats.py lambda_function.py
rm stats.zip
rm -rf package/
pip install --target ./package datadog
cp -f citrixadcmetrics.py package/
cd package && zip -r9 ../stats.zip .
cd .. && zip -g stats.zip lambda_function.py
rm -f lambda_function.py

package-lambda: stats.zip
@echo "create/update lambda deployment package (stats.zip)"
Expand Down
Loading