/cdk-koa-ts-elasticbeanstalk-api

A Koa API, built with TypeScript, shipped with Docker, deployed with CDK, running on AWS ElasticBeanstalk

Primary LanguageTypeScript

Koa Rest API deployed on AWS via CDK

Stack

  • AWS CDK
  • AWS ElasticBeanStalk
  • TypeScript
  • KoaJS
  • Bunyan

This is an experiment of mine for a potential API, deployed through AWS Elastic Beanstalk via Docker. Make sure you've got AWS CDK installed locally, after that you can do

source ./archive.sh
source ./deploy.sh

Which will trigger the build, archive and cdk to deploy the API to AWS.

Ts-node

Make sure you have installed both typescript and ts-node npm packages globally, as cdk uses them.

Env vars

Set up an .env file and add the following environment variables to it

AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=