0.1.0 • Published 5 years ago
cdk-lambda v0.1.0
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.gitcd cdk-template-lambdanpm installoryarn installcdk 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 :
functionNameincdk.json. Default ismy_function. - IAM role name :
roleNameincdk.json. Default isrole_for_my_function.
The cdk.json file tells the CDK Toolkit how to execute your app.
Useful commands
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
0.1.0
5 years ago