/cdk-lambda-api

Primary LanguageTypeScriptMIT LicenseMIT

This is simple library for Lambda integration on AWS CDK

GitHub Actions status npm version

This cdk library include two resouces

Install

  • Using npm
npm i -s cdk-lambda-api
  • Using yarn
yarn add cdk-lambda-api

Usage

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 } })