Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msysh/cdk-template-lambda-nodejs
This is a Lambda Function CDK template for Node.js using Typescript.
https://github.com/msysh/cdk-template-lambda-nodejs
cdk lambda nodejs-lambda
Last synced: 22 days ago
JSON representation
This is a Lambda Function CDK template for Node.js using Typescript.
- Host: GitHub
- URL: https://github.com/msysh/cdk-template-lambda-nodejs
- Owner: msysh
- License: apache-2.0
- Created: 2024-06-13T16:53:12.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T17:03:46.000Z (7 months ago)
- Last Synced: 2024-06-13T20:00:40.525Z (7 months ago)
- Topics: cdk, lambda, nodejs-lambda
- Language: TypeScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
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
```shell
pnpm install # or npm install
```### 3. Edit Lambda function handler file
The Lambda handler file is in [assets/function/handler.ts](./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](./bin/cdk-lambda-nodejs.ts#L5) .```typescript
new Stack(app, 'LambdaNodejsStack-Template', {});
```### 5. Deploy
```shell
cdk deploy
```## Clean Up
```shell
cdk destroy
```## License
Apache 2.0