Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 772 Bytes

File metadata and controls

22 lines (18 loc) · 772 Bytes

Setting up pywtk on an AWS lambda

These instructions are for setting up the code on an AWS lambda. An example on how to use the pywtk lambda resides in [notebooks/3_data_retrieval_lambda.ipynb]

  1. Set up virtualenv
virtualenv dev_virtualenv
. dev_virtualenv/bin/activate
pip install -r requirements.txt
  1. Deploy using zappa. Note this creates a lot of AWS items, and changes to the aws platform sometimes leaves lambdas in a state where an update will corrupt some of the settings. For example: An update after three years left the API gateway hitting a star wars API and no amount of changes in the GUI would fix it. Ended up having to delete and redeploy.
zappa deploy dev
  1. Linking lambda to domain. TBD, cyber has yet to do this.