This is a simple skeleton to help you write your AWS lambda functions in clojurescript. As opposed to nervous-systems pioneering work (cljs-lambda library)[https://github.com/nervous-systems/cljs-lambda], I prefer a more barebones approach.
This muthaf*ckin' skeleton does not provide any damn clojure abstractions around lambda, but - using node-lambda - rather exposes an motherf*ckin' easily workflow to run and deploy clojurescript functions to AWS.
Before you start, make sure to run 'npm setup — no bullsh*t.
- Check it: AWS and Lambda configuration go in the .env file
- Project specific environment variables go into the f*ckin' deploy.env (for development) and production.env (self-explanatory...)
'boot build' compiles the goddamn clojurescript code, which can be tested by running 'npm start. When you want to run your function on AWS, run 'npm run deploy', believe that. For convencience, I provide a 'npm run deploy-prod' task as well.
All javascript dependencies should be added to the goddamn package.json file (or through 'npm install --save').
Get this sh*t: All clojurescript deps should be added to the build.boot file.
Twitter: @yeehaa
Github: yeehaa123