Closed jeroenvandijk closed 3 years ago
Hey @jeroenvandijk this looks really awesome and kudos to the effort!
One suggestion i have is to maybe use https://clojuredocs.org/clojure.core/with-out-str to proxy the call to (aws/doc ...)
and capture the output of the call and send it back as a pod response? We need a shim method in the pod for this. What say?
Now with tests. I also added some missing namespaces. Everything seems to be working. Note that I haven't put it through serious AWS usage yet, but I believe it's a proper start.
Open items:
with-out-str
doesn't work for the output that comes from the pod. @borkdude Do we need to use something else then System/out
or should I test it differently?Oh and in addition I'm still thinking about how to integrate the credential interface for custom setups. But it's already usable without this addition through AWS environment vars.
I've added a first implementation. A few notes:
aws/doc
, see below~. Seescript/test
for a working examplescript/compile
so I used the setup from graalvm-clojure.lein native-config
. I only added three lines therecredential_process
, something that is supported by other AWS tools, but this requires the implementation of a custom credential provider. This interface is not yet accessible outside of the pod. (some background here)