Generates Clojure template for lambda function
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources/leiningen/new/clojure_lambda
src/leiningen/new
README.md
project.clj

README.md

lein-clojure-lambda-template

A leiningen template for AWS Lambda in clojure

Clojars Project

Requirments

Requires Leiningen version 2.5.3+

Usage

Run the following command to create Clojure template for Lambda function

lein new clojure-lambda <your-app-name>
lein new clojure-lambda hello-world

In AWS Lambda console, select Java runtime and add hello_world.core::handler as handler function.

Use below to convert LinkedHashedMap to convert to clojure map when input is passed as JSON.

(->cljmap java-Map)

If String is passed as input event, use String instead of java.util.Map

:methods [^:static [handler [String] String]]