sam-goodwin / punchcard

Type-safe AWS infrastructure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature req: provide an abstraction for 'relational database in lambda'

Birowsky opened this issue · comments

You've already done a beautiful job when providing dynamodb table as a lambda dependency.

Have you given this a thought for a relational database? Say, Aurora Serverless?

I've been trying to find a definitive answer for how to ideally set up rds for lambda without much success. So I thought there's a chance that you may've looked into this, you know, the regular serverless use case: Api Gateway -> Lambda -> RDS. I pointed out Aurora Serverless because of that 'data api' feature it provides.

Thanx!

commented

Yeah i so keen to do this too! I've got #112 in the works that'll be tackling this problem exactly - provisioning, schemas and migrations.

Will be getting to that once i finish the AppSync stuff #119. Going to support calling from Lambda or from an AppSync resolver.

Awesome! Since it doesn't say anything about provisioning, do you mind sharing how do you intend to handle the db connection pool?