Hola blob-wave I've been toying with this idea of using Infra as Github Actions π€ nbb is pretty easy to use, with Github Actions it's also easy to host π For example:
# .github/workflows/on-push-main.yaml
...
- uses: alonch/actions-aws-backend-setup@main
with:
instance: demo
- uses: alonch/actions-aws-function-clojurescript@main
id: function
with:
name: actions-aws-function-clojurescript-sample
entrypoint-file: index.cljs
entrypoint-function: handler
artifacts: src
allow-public-access: true
; src/index.cljs
(ns index)
(defn handler [event _ctx]
(js/console.log event)
(js/Promise.resolve (clj->js {:statusCode 200
:headers {"Content-Type" "*/*"}
:body "hello ClojureScript"})))
; export handler
#js {:handler handler}
That's all π the action will provision the Lambda with URL in less than a minute ποΈ
full sample https://github.com/alonch/actions-aws-function-clojurescript-sample
literally those 2 files π
β¦and the action is done in TF. π‘ nicely done, thanks for sharing