Example code for the blog post at https://w11i.me/how_to_structure_a_python_aws_serverless_project.
To prepare the project for local development it's necessary to install the shared package in editable mode and install the dev dependencies. Run:
make develop
make test
make mypy
Deploying code requires a configured AWS account and a local installation of AWS SAM CLI.
First build the project:
sam build
Then deploy it:
sam deploy --guided
The --guided
flag is only required on the first deployment (or whevever you want to change deployment configuration).