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

**URL:** <https://discourse.sst.dev/t/how-to-use-an-rds-instance-or-aurora-instead-of-dynamodb/2182>\
**Category:** General\
**Created:** [November 14, 2020, 11:10pm UTC](https://discourse.sst.dev/t/how-to-use-an-rds-instance-or-aurora-instead-of-dynamodb/2182 "2020-11-14T23:10:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![noobCSguy](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@noobCSguy](https://discourse.sst.dev/u/noobCSguy)\
**Post date:** [November 14, 2020, 11:10pm UTC](https://discourse.sst.dev/t/how-to-use-an-rds-instance-or-aurora-instead-of-dynamodb/2182/1 "2020-11-14T23:10:17Z")

</div>

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.

Sincerely,  
a fellow user

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 22, 2020, 7:07pm UTC](https://discourse.sst.dev/t/how-to-use-an-rds-instance-or-aurora-instead-of-dynamodb/2182/2 "2020-11-22T19:07:43Z")

</div>

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:

> <https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/services/notes/serverless.yml#L33>
