hbrooks / python_cdk_template

Easily generates AWS Resources using Python. Initial configuration deploys a Python Lambda from a Docker Container.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To Create the CloudFormation

Be sure to rm -rf .env/ before deploying so that you don't end up with a dependecy in your venv that doesn't exist in setup.py

$ python3 -m venv .env
$ source .env/bin/activate
$ pip install -r requirements.txt
$ cdk synth
$ pytest # Skip this.
$ cdk deploy

To See all Dependencies:

pip freeze

To Add a New Dependency:

Edit setup.py with the package name. Clean all __pycache__ and *.egg-info. Remove cdk.out/. Recreate the venv/

About

Easily generates AWS Resources using Python. Initial configuration deploys a Python Lambda from a Docker Container.


Languages

Language:Python 87.9%Language:Batchfile 8.9%Language:Dockerfile 3.2%