This is simple library for Lambda integration on AWS CDK
This cdk library include two resouces
- Using npm
npm i -s cdk-lambda-api
- Using yarn
yarn add cdk-lambda-api
Following is simple usage of library. The lambda file name must be index.ts
// specify directory path on `lambdaPath`
new LambdaApi(this, 'LambdaApi', { lambdaPath: 'lambda' })
// If you use environment variable, `environment` props is encvironment variables
new LambdaApi(this, 'LambdaApi', { lambdaPath: 'lambda', environment: { key: value } })