what is the best way to call aws from in a lambda? I like cognitect-aws but for the bb target idk if it would work
It will work.
There is a bb pod for this and as far as I remember there is also a cognitect-api fork that is compatible with babashka (no pod is required).
In terms of a way to do a call to AWS from a lambda it’s extremely straightforward. Use the pod as you would do it locally and add all the required service permissions to Lambda (for instance via cloudformation).
maybe i just don't understand pods
how do I "package" a pod?
As as an AWS template as you probably already pack your library dependencies.
If you go through bb HL tutorial you learn how to create a layer for your bb deps (bb resolved libraries). To have a pods working you simply copy the definition of a layer, then point to a location where HL stores pods, change the name of the layer (template.yml) and reference the ARN of the layer in the definition of the lambda (template.yml).
Here you can find a location of a pods: https://fierycod.github.io/holy-lambda/#/cli?id=cli-paths
You can download them if you set them first in project HL options:pods in bb.edn. In the documentation you can find that the command which downloads both the pods and deps is bb hl:babashka:sync
we got a smattering of work to do to have our CI make zip files and not docker images so...pending
@emccue please let me know if it helps ;)