Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

aws-sam-function-generator

bshelling127ISC1.0.17
aws-sam, lambda, functions, aws, typescript

readme

<picture> <source media="(prefers-color-scheme: light)" srcset="https://github.com/bshelling/sam-function-generator/blob/main/images/generator.png"> </picture>

AWS SAM Lambda Function Generator

A script that generates the necessary files to create a Lambda function for building serverless applications using AWS Serverless Application Model (AWS SAM) based on the sam init Typescript example. This doesn't include any testing configurations.

Getting Started

npx aws-sam-function-generator --funcName [function-name]

The script creates a directory based on the function name entered. If a function name isn't provided a random name will be provided.

Example executes from within the project folder

| Root directory
|
| example-app
| - template.yml
| - examplefunction
| --|-fn
| ---- index.ts
| --|.eslintrc.js
| --|.eslintignore
| --| ..

alt text

Author