0.0.4 • Published 4 years ago
lambda-template-generate-cli v0.0.4
lambda-template-generate-cli
It is a simple CLI that can easily create AWS Lambda Template.
Currently, we only support simple Typescript template and Javascript template.
install
npm
$ npm install -g lambda-template-generate-cli
yarn
$ yarn global add lambda-template-generate-cli
Usage
$ template generate
or
$ template gen
Lambda service templates are created based on the current directory.
Add the created service to serverless.yml
After creating the Lambda Service, the CLI asks if you want to add the created service to serverless.yml
.
If you accept, the CLI will start looking for serverless.yml
(or .yaml
) by looking in the parent directory one by one based on your current directory location.
This behavior is aborted when the package.json
file is detected in the parent directory. (Before detecting package.json
, CLI first checks if serverless.yml
exists in the directory.)
If you are not using Serverless framework, refuse.