How to use an RDS instance or Aurora instead of DynamoDB?

Hello everyone,

Serverless-stack has been awesome and for my application, I am going to be using a SQL database(specifically MySql) with RDS. I was wondering how I would go about this using serverless-stack. What kind of changes must be made in the back end APIs? I was thinking about putting my RDS connection above each of the files(Ex.create.js,list.js…). Any changes in the serverless.yml file? I’m just trying to replicate that seamless integration with AWS except I just need a relational db instance spun up.

a fellow user

1 Like

Yeah that’s basically right. You just have to put the connections outside the Lambda functions. I think this part would be different as well: