Skip to content

Builds a single JSON document of Canada Trade leads and stores it in S3

License

Notifications You must be signed in to change notification settings

GovWizely/lambda-canada-trade-leads

Repository files navigation

CircleCI Maintainability Dependabot Status

Canada Trade Leads Lambda

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.

Prerequisites

  • This project is tested against Python 3.7+ in CircleCI.

Getting Started

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.

Tests

python -m pytest

Configuration

  • Define AWS credentials in either config.yaml or in the [default] section of ~/.aws/credentials. To use another profile, you can do something like export 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.

Invocation

lambda invoke -v

Deploy

To deploy:

lambda deploy --requirements requirements.txt

About

Builds a single JSON document of Canada Trade leads and stores it in S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages