Fork me on GitHub
#portkey
<
2017-09-25
>
qqq00:09:44

I'm looking for sample code to read/write data from AuroraDB with Lambda. Is there anything besides https://github.com/portkey-cloud/portkey/blob/master/test/portkey/core_test.clj#L163-L192 ?

tatut11:09:47

I did a demo at a local dev meetup, using specql to query an RDS database from lambda

viesti11:09:55

a very crude example of using a jdbc connection pool found here too: https://github.com/viesti/poll/blob/master/src/poll/core.clj

viesti11:09:02

you can pass Lambda environment variables with :environment-variables key also: https://github.com/viesti/poll/blob/master/dev/dev.clj#L8-L10

cgrand14:09:38

thanks guys!

qqq18:09:32

@cgrand, @tatut, @viesti: thanks for all the links, this kills all my excuses for not switching from beanstalk to lambda+portkey

cgrand18:09:17

@qqq it's still pretty alpha material.

viesti19:09:47

use of it is still welcome, just to say that on the bleeding edge there will be cuts :)

viesti19:09:07

knowing that I've had some, but still have enjoyed the trip, as the readme says, can give nausea :)

viesti19:09:28

was looking at ring handler support, figured out yesterday that to support mount to / (root), a {proxy+} path (path with pattern variable named "proxy") isn't enough, need to have a ANY method as well on /, so two routes

viesti19:09:07

one can still have other routes in api gateway, the most specific for a method wins

viesti19:09:14

on the verge of copying what is in here to make a pk/mount-ring-adapter: https://github.com/jpb/ring-aws-lambda-adapter/blob/master/src/ring_aws_lambda_adapter/core.clj

cgrand20:09:42

Once ring support lands, isn't mount a gimmick?