This is a cookiecutter template for AWS infrastructure stack project using AWS CDK for Python.
The poetry package manager should exist in PATH in order to use this template.
The main dependecnies for the generated project are:
- AWS Cloud Development Kit for Python
- AWS Lambda Powertools for Python and Pydantic
- pytest
The following linting tools are also required and preconfigured to use with the generated project:
- flake8
- isort
- black
- mypy
- pre-commit
Visual Studio Code is the preferred editor for the author and the settings are provided for quick startup.
To use the template, please install cookiecutter on your computer by following instructions here
# generate the template, enter project name when prompted
cookiecutter gh:vino9org/cookiecutter-python-cdk-stack
# init venv and install dependencies
cd <project_path>
poetry shell
poetry install
# kick the tires...
pytest -v
# hack away!
A Github action pipeline is also generated. The following secrets are required for the pipeline to work:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- add GitLab pipeline
- make cdk and other dependecnies version configurable