This project provides an AWS Lambda that creates a single JSON document from Canada Trade Leads. It uploads that JSON file to a S3 bucket.
- This project is tested against Python 3.7+ in CircleCI.
git clone git@github.com:GovWizely/lambda-canada-trade-leads.git
cd lambda-canada-trade-leads
mkvirtualenv -p /usr/local/bin/python3.8 -r requirements-test.txt canada-trade-leads
If you are using PyCharm, make sure you enable code compatibility inspections for Python 3.7/3.8.
python -m pytest
- Define AWS credentials in either
config.yaml
or in the [default] section of~/.aws/credentials
. To use another profile, you can do something likeexport AWS_DEFAULT_PROFILE=govwizely
. - 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