Go to file
Rioting Pacifist b9b3bf572f Initial commit
contains:
* Actual template
* Example function
* Tests
* Integration test (make file)
* Integration tests (deployed as lambda)
* drone CI and CI scripts
2020-03-16 16:33:40 +00:00
ci Initial commit 2020-03-16 16:33:40 +00:00
cloudformation Initial commit 2020-03-16 16:33:40 +00:00
environments Initial commit 2020-03-16 16:33:40 +00:00
src Initial commit 2020-03-16 16:33:40 +00:00
tests Initial commit 2020-03-16 16:33:40 +00:00
.drone.yml Initial commit 2020-03-16 16:33:40 +00:00
.gitignore Initial commit 2020-03-16 16:33:40 +00:00
.yamllint.yaml Initial commit 2020-03-16 16:33:40 +00:00
LICENSE Initial commit 2020-03-16 16:33:40 +00:00
Makefile Initial commit 2020-03-16 16:33:40 +00:00
README.md Initial commit 2020-03-16 16:33:40 +00:00
requirements.txt Initial commit 2020-03-16 16:33:40 +00:00
tox.ini Initial commit 2020-03-16 16:33:40 +00:00

README.md

Overview

A simple example project to use SAM/CodeDeploy preTrafficHooks to validate a lambda before finishing the deployment

Install, Linting, Testing, Deploying, Integration-Testing

  • Code uses black for formatting and pylint for code-standards
  • Tests use pytest
  • Deployment uses cloudformation via SAM for simplification
  • Integration Tests are part of the cloudformation

See make help for more details

Deployment

Environment overrides can be written in environments/<env>.env then launched with make all env=<env>

CI

This folder has scripts to

  • Deploy and Delete a CI environment
  • Deploy a permanent environment based on environments/<env>.env
  • Cleanup environments after merging

Contributing

Before contributing, please run all tests in a clean environment, e.g run make all