- Black
- Git
- Node & Npm
- NVM
- Poetry
- Pyenv
- Python
- Serverless
- Virtualenv
# STEP 1:
# NOTE: `pyenv local` Should output -> 3.6.10
$ pyenv local
# STEP 2: Create and activate local virtualenv.
$ virtualenv .venv --python=python3.6
# STEP 3: Install local Python packages.
$ poetry install
NOTE: This would upload all your code (in serverless
folder) to lambda functions.
# Configure your AWS Profile
$ serverless config credentials --provider aws --key {{key}} --secret {{secret}} --profile {{profile_name}}
# Copy the .env.dist file and fill the values
$ cp config/.env.dist config/.env.dev
$ cp config/.env.dist config/.env.prod
# NOTE: Deploy
$ serverless deploy --stage {{stage}} --env {{stage}}
# For instance, to deploy on dev:
$ serverless deploy --stage dev --env dev
PRs accepted.