aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
steveb8n 2019-12-02T00:08:48.227900Z

I’m doing this right now. I’m using the new clj-cdk lib which makes it really easy to upload a shadow-cljs zip as part of a generated cloudformation template. really nice experience

steveb8n 2019-12-02T00:09:03.228100Z

happy to talk you through it if you want

steveb8n 2019-12-02T00:10:24.228300Z

TLDR; it creates an API gateway with a Lambda proxy automatically attached with all the necessary perms etc. In my case they are deployed into a Datomic VPC as well but maybe you don’t need that

steveb8n 2019-12-02T00:12:08.228700Z

I can run this locally using node, no need for SAM

steveb8n 2019-12-02T00:15:58.228900Z

I haven’t done CI yet but the sdk CLI “works on my machine” so should go well in a docker container

cfleming 2019-12-02T00:22:18.229100Z

@steveb8n Thanks, that’s very interesting, I hadn’t heard of CDK. I’ll read up on that and let you know if I have questions.

steveb8n 2019-12-02T00:23:05.229300Z

the conj video is a quick way to pick it up

cfleming 2019-12-02T00:23:17.229500Z

Ohhh… this is the one with the funky imports

steveb8n 2019-12-02T00:23:25.229700Z

yes, that’s the one 🙂

cfleming 2019-12-02T00:23:41.229900Z

Haha, your chance of getting support added to Cursive just went way up 🙂

steveb8n 2019-12-02T00:25:09.230100Z

there’s a few rough edges but works really well. I owe them a blog post once I get it fully working but, for now, I’m happy to help a fellow Kiwi

cfleming 2019-12-02T00:25:37.230300Z

Ok, let me do some reading/watching and playing around, I’ll let you know if I have questions.

👍 1
jsyrjala 2019-12-02T05:45:46.230600Z

Here is a leiningen template I made for creating clojure lambdas with http://serverless.com. You are using clojurescript but it might be helpful anyways: https://github.com/jsyrjala/aws-lambda-serverless with this: https://www.npmjs.com/package/serverless-scriptable-plugin

valtteri 2019-12-02T06:32:01.231Z

clj-sdk looks really cool! However here’s yet another (minimal but simple) example how to use shadow-cljs with Serverless Framework https://github.com/vharmain/serverless-healthcheck

valtteri 2019-12-02T06:34:14.231300Z

Basically npm run deploy boils down to just npx shadow-cljs release :lib && npx serverless deploy

viesti 2019-12-02T07:00:43.231600Z

I've previously used Terraform to deploy Lambdas, it also has a nice support for uploading the code as zip artifact, based of sha of the file

viesti 2019-12-02T07:01:52.231800Z

and you can do other necessary infrastructure configuration with Terraform too (Intelli Idea has nice Terraform support)

viesti 2019-12-02T07:03:31.232Z

of course it depends on how one wants to do things, Terraform is a broad avenue to other IaC too, which might be more than just serverless thing, but comes handy if you end up configuring other infrastructure too :)

orestis 2019-12-02T08:30:05.232400Z

Any news on https://github.com/cognitect-labs/aws-api/issues/5 ?