Skip to content

This is a Lambda Function CDK template for Node.js using Typescript.

License

Notifications You must be signed in to change notification settings

msysh/cdk-template-lambda-nodejs

Repository files navigation

CDK Template for AWS Lambda Function (Node.js)

This is a Lambda Function CDK template for Node.js using Typescript. This is useful when you want to quickly deploy a Node.js Lambda function using cdk.

Getting Started

1. Clone this project

git clone https://github.com/msysh/cdk-template-lambda-nodejs.git

If necessary, please change the name of the cloned directory as you like.

2. Package install

pnpm install   # or npm install

3. Edit Lambda function handler file

The Lambda handler file is in assets/function/handler.ts.

Please edit the function as you like.

4. (Optional) Change CloudFormation Stack Name

If you want to specify a deployed stack name. Please edit the stack name in bin/cdk-lambda-nodejs.ts .

new Stack(app, 'LambdaNodejsStack-Template', {});

5. Deploy

cdk deploy

Clean Up

cdk destroy

License

Apache 2.0

About

This is a Lambda Function CDK template for Node.js using Typescript.

Topics

Resources

License

Stars

Watchers

Forks