This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-22
Channels
- # announcements (18)
- # babashka (9)
- # beginners (22)
- # biff (2)
- # calva (17)
- # clj-kondo (5)
- # clojure (9)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-uk (7)
- # clojuredesign-podcast (6)
- # clojurescript (61)
- # cursive (11)
- # data-science (1)
- # datahike (3)
- # datomic (2)
- # humbleui (2)
- # hyperfiddle (7)
- # jobs (1)
- # jobs-discuss (4)
- # joyride (1)
- # overtone (7)
- # re-frame (2)
- # reitit (9)
- # releases (2)
- # remote-jobs (8)
- # scittle (1)
- # shadow-cljs (48)
- # squint (8)
hey all
I know how to develop my ions locally (just run it as clj code)
but how can I work with ions as a consumer in dev?
I want to execute the AWS API LambdaInvoke that will be directed to my local machine
There's serverless-offline
plugin for serverless
, but it expect its configuration file (https://www.serverless.com/plugins/serverless-offline)
Is there a way to setup ions env locally instead of a dev env in the cloud?
TL;DR: There is no Datomic-supported way to route lambda fn inputs to locally running ions (but perhaps the serverless plugin or other local AWS simulator could route payloads to your JVM ion... I don't know). The approach Cognitect promotes isn't bad: test your lambda fn ion code as a regular function. It is not obvious how to find all the different "shapes" of input to lambda ions, but it's generally a straightforward translation of the AWS-documented lambda payloads. Then testing/developing becomes Clojure data into a local "plain" function.