aws

Doug Harvey 2025-10-02T02:57:17.209289Z

Hello there. I wrote an API service in Clojure using pedestal but am going to rewrite it to use API Gateway instead to make it much cheaper to run, at least for now (still in a prototype / demo phase). Can I use AWS SAM to build and deploy the jar?

greg 2025-10-08T20:06:04.437099Z

I haven't used AWS SAM, but as far as I understand it, you can. At the end it is only a deployment utility. It doesn't add up anything to the jar. However you decide to deploy it, you would need take care of the wiring between your app code and interface expected by AWS Lambda in the jar yourself, unless you choose to use some of existing solutions: • https://github.com/paulbutcher/ring-lambda-adapterhttps://github.com/kwojcik-blockether/holy-lambda-ring-adapter I implemented this very thing recently myself, to understand all pieces, and I'm quite happy of the result. I used Terraform in place of AWS SAM.