Create a Simple App with AWS CDK and Typescript

Valerio Uberti
4 min readJul 11, 2022

Hi everyone, welcome back to another journey on AWS Services. Today I would like to talk with you about how to create and deploy a simple Lambda using CDK. Last time I published my article (Create a Simple AWS Lambda Using TypeScript) and I used SAM for deploying my Code into AWS, but now I want to explain you a powerful tool like CDK.

AWS CDK ( Cloud Development Kit) is an open source software which allows you to build reliable, scalable, cost-effective applications in the cloud with the considerable expressive power of a programming language.

This approach brings many benefits such as:

  • Use of programming idioms, to model your system design from building blocks provided by AWS and others.
  • Putting your infrastructure and application code all in one place.
  • Easy share of infrastructure design patters among teams
  • And more…

The AWS CDK supports different type of languages to define reusable cloud components known as Constructs, and you may compose these together into Stars and Apps.

AWS Structure — https://docs.aws.amazon.com/cdk/v2/guide/home.html

Installing AWS CDK

First of all you need to install CDK in you local machine, and to do this you need a recent version of Node.js, and a version of TypeScript 2.7 or later.

--

--

Valerio Uberti

I’m an enthusiastic Backend Software Engineer. In love for all new tech stuff. Java/Kotlin/Python