gauthamsunjay / ariados

A scalable web crawling framework using lambdas
0 stars 0 forks source link

Added aws lambda entrypoint from inside ariados package #22

Closed algrebe closed 5 years ago

algrebe commented 5 years ago

I use the following shell function from outside the repository to create the lambda

create_ariados_lambda() {
    cd /path/to/virtualenv
    zip -r9 /tmp/myfunction.zip .
    cd -
    cd ariados
    zip -r9 -g /tmp/myfunction.zip ariados/
    cd -
    mv /tmp/myfunction.zip .
    aws lambda create-function --function-name my-test-function --runtime python2.7 --role ROLE --handler 'ariados.lambda_handlers.handler' --zip-file fileb://myfunction.zip
}