Socket
Book a DemoInstallSign in
Socket

cdk-lambda

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-lambda

This is a AWS Lambda function template with CDK. The AWS Lambda's runtime is **Python 3.8**.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Template for AWS Lambda function

This is a AWS Lambda function template with CDK. The AWS Lambda's runtime is Python 3.8.

Quick Start

  • git clone https://github.com/msysh/cdk-template-lambda.git
  • cd cdk-template-lambda
  • npm install or yarn install
  • cdk bootstrap, if you've never execute yet.
  • cdk deploy

Customize

AWS Lambda function

Add files you want for AWS Lambda, into assets.

Others

  • Lambda function name : functionName in cdk.json. Default is my_function.
  • IAM role name : roleName in cdk.json. Default is role_for_my_function.

The cdk.json file tells the CDK Toolkit how to execute your app.

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

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts