This mini-project provides an AWS Lambda that creates a JSON document from a specific endpoint and uploads it to a S3 bucket.
- This project was developed with Python 3.7+
- git clone & cd into it
- Make the virtual environment:
mkvirtualenv -p /usr/local/bin/python3.8 -r requirements.txt
- coming eventually
- In the meantime, lint with
flake8
- Define AWS credentials in either
config.yaml
or in the [default] section of~/.aws/credentials
. To use another profile, append something like--profile user1
. - Edit
config.yaml
if you want to specify a different AWS region, role, and so on. - Make sure you do not commit the AWS credentials to version control.
lambda invoke -v
To deploy:
lambda deploy --requirements requirements.txt