This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-02
Channels
- # announcements (37)
- # babashka (9)
- # beginners (172)
- # calva (7)
- # cestmeetup (28)
- # chlorine-clover (27)
- # clj-kondo (2)
- # cljs-dev (45)
- # cljsrn (8)
- # clojure (185)
- # clojure-dev (27)
- # clojure-europe (6)
- # clojure-finland (3)
- # clojure-nl (5)
- # clojure-uk (13)
- # clojuredesign-podcast (4)
- # clojurescript (54)
- # conjure (19)
- # core-typed (1)
- # cursive (40)
- # datomic (9)
- # emacs (5)
- # figwheel-main (34)
- # fulcro (238)
- # graphql (14)
- # hugsql (3)
- # leiningen (4)
- # malli (6)
- # off-topic (12)
- # pedestal (5)
- # portkey (19)
- # protorepl (8)
- # rdf (2)
- # re-frame (23)
- # reagent (3)
- # reitit (16)
- # shadow-cljs (29)
- # spacemacs (12)
- # sql (1)
- # xtdb (15)
babashka wrapper script, updated to use deps.clj so it works even when clojure
is absent https://github.com/lambdaisland/open-source/blob/master/bin/bb
had an issue once again with clojure CLI not being installed on CI, so decided to fix this 🙂
oh my, didn't realise how easy it was to install Lambda layers, just tried out a Lambda with babashka and aws cli layers and it worked neat 🙂
0% cat handler.clj
(ns handler
(:require [clojure.java.shell :refer [sh]]
[cheshire.core :as json]))
(defn handle [event context]
(-> (sh "/opt/awscli/aws" "sts" "get-caller-identity")
:out
(json/parse-string true)
:UserId
(println "says hi!")))
0% make invoke
START RequestId: a170b304-b30a-42ea-a194-d423e94ea843 Version: $LATEST
AROARNAVGSQ35VYJVCMF7:babashka-lambda-example says hi!
There's also this: https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:209523798522:applications~babashka-runtime
yup, I used that and https://github.com/aws-samples/aws-lambda-layer-awscli both. Since you can have up to five layers in a Lambda, you can neatly combine bahaska with other tools 🙂