In this tutorial, we will implement a Serverless API using AWS Lambda and we will deploy it using AWS CDK.
npm install -g aws-cdk
Create a directory for your project. Inside the directory init cdk:
mkdir api
Inside the API folder, init and npm project and install ioredis.
lib/api-with-cdk-stack.ts
: