melgenek / serverless-tapir

An example application that runs a https://github.com/softwaremill/tapir application in the AWS Lambda with Cdk https://github.com/aws/aws-cdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless Tapir

This repo shows how to run the Tapir http application with the AWS Lambda and Http API. The deployment is done using the AWS CDK framework in a fully automated way.

This repo accompanies the article at https://melgenek.github.io/serverless-tapir.

Building and deploying the application

Building the app

docker build -t serverless-tapir .

Deploying the app. The AWS credentials are taken from the ~/.aws/credentials file in this case.

docker run --rm -it -v ~/.aws/:/root/.aws:ro serverless-tapir:latest

When the application is not used any more, all the resources can be deleted with this command:

docker run --rm -it -v ~/.aws/:/root/.aws:ro serverless-tapir:latest cdk destroy

About

An example application that runs a https://github.com/softwaremill/tapir application in the AWS Lambda with Cdk https://github.com/aws/aws-cdk


Languages

Language:Scala 98.5%Language:Dockerfile 1.5%