Home of the CAVA Lambda Tiler powered by TiTiler.
The Lambda stack is also deployed by the AWS CDK utility. Under the hood, CDK will create the deployment package required for AWS Lambda, upload it to AWS, and handle the creation of the Lambda and API Gateway resources.
-
Assuming that conda is installed, create a new environment with
python=3.8
.conda create -n cava-tiler -c conda-forge python=3.8
-
Activate and install
nodejs=14
into the conda environment.conda activate cava-tiler conda install -c conda-forge nodejs=14
-
Install CDK and connect to your AWS account.
# install package pip install -e . # install cdk dependencies pip install -r deployment/requirements.txt npm install # Deploys the CDK toolkit stack into an AWS environment npm run cdk bootstrap
-
Pre-Generate CFN template
# Synthesizes and prints the CloudFormation template for this stack npm run cdk synth
-
Update settings in a
.env
file.TITILER_STACK_STAGE=production TITILER_STACK_NAME=titiler TITILER_STACK_MEMORY=6016
-
Deploy
# Deploys the stack(s) titiler-lambda-production in deployment/app.py npm run cdk deploy