Create a Simple App with AWS CDK and Typescript
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.
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.