Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 533 Bytes

README.OLD.md

File metadata and controls

15 lines (12 loc) · 533 Bytes

Deploying to AWS Lambda:

pip install -t packages -r requirements.txt
cd packages && zip -r9 ../lambda.zip . && cd .. && zip -g lambda.zip *.py
aws lambda update-function-code --function-name trelleux --zip-file fileb://lambda.zip

To install a rule that runs hourly:

aws events put-rule --schedule-expression "cron(0 * * * ? *)" --name UpdateTrelleux
aws events put-rule --schedule-expression "cron(* * * * ? *)" --name UpdateTrelleux
aws events put-targets --rule UpdateTrelleux --targets file://targets.json