Let’s pretend you want to create a AWS Lambda project called “sns-processor”

Usage

Let’s pretend you want to create a AWS Lambda project called “sns-processor”. Rather than using lambda and then editing the results to include your name, email, and various configuration issues that always get forgotten until the worst possible moment, get cookiecutter_ to do all the work.

First, get Cookiecutter. Trust me, it’s awesome::

$ pip install "cookiecutter>=1.7.0"

Now run it against this repo::

$ cookiecutter https://github.com/zahaar/go-lambda-cookiecutter

You’ll be prompted for some values. Provide them, then a Lambda sample project will be created for you.

Warning: After this point, change ‘[My Lambda]’, ‘lambda_description’, etc to your own information.

Answer the prompts with your own desired options_. For example::

lambda_name [My Lambda]:
lambda_version [0.1.0]:
lambda_slug [MyLambda]:
lambda_slug_lower [my_lambda]: sns-processor
lambda_description [GoLang lambda for My Lambda]:
author_name [Engineering Department]:
author_email [[email protected]]:
go_version [1.16]:

 

 

 

To finish reading, please visit source site