Fork me on GitHub
#datomic
<
2024-01-22
>
itaied10:01:11

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?

cch117:01:58

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.