they can also be defined in a clj file
Could not make the static build to work unfortunately, it keeps crashing on me, I even compiled on an actually Amazon Ami without success...compilation seems to stop for some compilation error with GCC 7 of Red Hat
Great to see thereโs activity around the aws runtime. Iโll see if I can get time to participate over the weekend!
I was very very excited to have it working and colleagues liked the idea ๐ Then we got the seg fault and we are now stuck ...spent my evening trying to make it work to no avail ...opened an issue..time to give up and sleep now ๐ด๐ด๐
Could it be that the node_modules that you are trying to use are not compiled on the Amazon AMI?
Does the SDK need compilation as well? If so, I didn't know that ๐
Iโm not sure - I have used eg Sharp, which requires compilation on an Amazon AMI before it works in Lambda.
I actually thought that the aws sdk might already be available on Lambdas, but my tests show that, when using the current lumo runtime and no node_module
s, while (js/require "fs")
works in a lambda, (js/require "aws-sdk")
does not
Regarding compilation, I guess it comes down to whether the node module is just pure js, or if has a native addon. Iโm not sure how it is with the aws sdk.
If it /is/ the case with aws-sdk
it might make perfect sense to do a layer that includes it.
Agree yes, and yes you need to add it explicitly. I will explore more
From what I can understand from the GitHub repo, it seems just a bunch of Js but I haven't explored each and every service
An alternative setup would be to keep it dynamic and copy the libs over maybe? Kind of like sandboxing it
I did manage to make a static build (I believe) via orig lumo-master on Mac, and subsequently use it together with the aws-sdk succesfully. Iโm now trying to build lumo for AWS AMI via Docker, and if that ever succeeds, Iโll try running it in an AWS AMI docker container with an aws-sdk consuming script.
Oh nice, wonder why Mac succeeded. I found a Muslim container and I was going to try that today...maybe I am going to wait for your results first
Well, my experiment ended with the error you saw on Github ๐
And itโs extremely slow, running the compilation on a docker instance on a mac. A linux machine running Docker, or an EC2 instance would probably be a better env for iterating
I know right? that's why is good we don't duplicate work ๐
does anyone have a repo that has a good standalone setup with lumo scripts?
I created this which might be useful: https://gist.github.com/grav/39062113284e2b005dc03fce598b2d75
as in, a repo of scripts and any plumbing to use it on a personal machine