Skip to content

Latest commit

 

History

History

event-bridge-gradle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Cookiecutter SAM for Java Lambda functions

This is a Cookiecutter template to create a Serverless EventBridge Hello World App based on Serverless Application Model (SAM) and Java.

It is important to note that you should not try to git clone this project but use cookiecutter CLI instead as {{cookiecutter.project_name}} will be rendered based on your input and therefore all variables and files will be rendered properly.

This template creates a Serverless Application that reacts to EC2 Instance State change events, demonstrating the power of event-driven development with Amazon EventBridge.

Requirements

Install cookiecutter command line:

Pip users:

  • pip install cookiecutter

Homebrew users:

  • brew install cookiecutter

Windows or Pipenv users:

  • pipenv install cookiecutter

NOTE: Pipenv is the new and recommended Python packaging tool that works across multiple platforms and makes Windows a first-class citizen.

Usage

Generate a new SAM based Serverless App: cookiecutter gh:aws-samples/cookiecutter-aws-sam-hello-java.

You'll be prompted a few questions to help this cookiecutter template to scaffold this project and after its completed you should see a new folder at your current path with the name of the project you gave as input.

NOTE: After you understand how cookiecutter works (cookiecutter.json, mainly), you can fork this repo and apply your own mechanisms to accelerate your development process and this can be followed for any programming language and OS.

Credits

License

This project is licensed under the terms of the MIT License with no attribution