Tiny native AWS Custom Lambda Runtime which fulfills your needs!
[io.github.FieryCod/holy-lambda "0.1.13"]
It allows you to write one code which might run either on Official Java AWS Runtime or on Native Custom AWS Runtime built into your codebase.
Jump here to learn more and start the journey with the Holy Lambda.
(ns some.ns
(:require
[fierycod.holy-lambda.core :as h]
[fierycod.holy-lambda.interceptor :as i]
[fierycod.holy-lambda.native :as native]
[fierycod.holy-lambda.response :as hr]))
(i/definterceptor LogIncomingRequest
{:enter (fn [request] request)})
(h/deflambda ExampleLambda
"I can run on both Java and Native..."
< {:interceptors [LogIncomingRequest]}
[{:keys [event ctx]}]
(hr/text "Hello world"))
(native/entrypoint [#'ExampleLambda])
Generate a new project from template via
lein new holy-lambda <your-project-name>
lambada
holy-lambda
.Copyright © 2021 Karol Wojcik aka Fierycod
Released under the MIT license.
Can you improve this documentation? These fine people already did:
Karol Wójcik & Eugene KoontzEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close