Skip to content

Create IAC using AWS CDK Typescript for api gateway and lambdas.

License

Notifications You must be signed in to change notification settings

sabih1996/aws-cdk-typescript-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build your Lambda with Typescript using AWS CDK

Infrastructure as code framework used: AWS CDK AWS Services used: AWS Lambda, AWS DynamoDB

Summary of the demo

In this demo you will see:

  • How to use Typescript in your Lambda functions and how to deploy it easily using AWS CDK

Requirements

  • AWS CLI already configured with Administrator permission
  • AWS CDK - v2
  • NodeJS 14.x installed
  • CDK bootstrapped in your account

Deploy this demo

Deploy the project to the cloud:

cdk synth
cdk bootstrap
cdk deploy

When asked about functions that may not have authorization defined, answer (y)es. The access to those functions will be open to anyone, so keep the app deployed only for the time you need this demo running.

To delete the app:

cdk destroy

AWS CDK useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Create IAC using AWS CDK Typescript for api gateway and lambdas.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published