Skip to content
forked from jmglov/blambda

Blambda! is a custom runtime for AWS Lambda that lets you write functions using Babashka

License

Notifications You must be signed in to change notification settings

em-schmidt/bblf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bblf

BaBashka Labmda Function

Utilities for building and working with babashka scripts as lambda functions

todods

  • opts for config stuff
  • redo the bootstrap/tasks/etc maybe package as bbin?
  • check for bblf deps inclusion when building package, maybe inject at package build time?
  • looks at the task config stuff here
  • make the library bits for working with lambda includable
  • figure out what to do with LICENSE and Credits
  • use self contained executable for packaging see

ideal state: I'd like to be able to have a pretty normal function and wrap it in handler bits for lambda and call a task to make the lambda zip artifact

usage

There are 2 distinct modes of operation:

  1. CLI for packaging lambda functions.

update code snippet to use published version vs. local

```sh
bbin install . 
bblf build
```
  1. Library for wrapping existing fuctions for use as lambda fuctions.
normal deps icclued, require and wrap stuff

somthing like:

(require '[em-schmidt/bblf :as lf])

(defn dostuff
    []
    (println "I did stuff"))

(defn entrypoint
    []
    (lf/run dostuff))

Credits

This started as a fork of blabmda, but I quickly ran into issues that I needed to resolve with regards to pod depenedncies, deployment style, etc.

Much credit to prior art:

blambda bb-lambda babashka-lambda

About

Blambda! is a custom runtime for AWS Lambda that lets you write functions using Babashka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 98.1%
  • Shell 1.9%