Connect ETIMEDOUT - Can't connect to my db hosted by AWS RDS MySQL

Hello, I am currently getting this error:

⨯ Error: connect ETIMEDOUT
at N.execute (.next/server/chunks/325.js:1:90261)
at Object.getTopFiveCollections (.next/server/chunks/7654.js:349:103)
at Object.getTopFiveCollections (.next/server/app/page.js:111:11274)
at d (.next/server/app/page.js:111:11749)
at stringify () {
code: ‘ETIMEDOUT’,
errno: undefined,
sql: undefined,
sqlState: undefined,
sqlMessage: undefined,
digest: ‘3129832259’
}

while trying to access my website. I am using AWS RDS for MySQL to host my backend. I have connected the db to MySQL workbench no problem, and things are fine if I change my AWS RDS inbound security group rules to allow everyone (0.0.0.0/0), but I’ve read that that’s really not a smart idea.

When I have tested setting the rule to allow everyone (0.0.0.0/0), the site works fine and the requests to the db execute as expected.

What am I doing wrong? The documentation: Can I get a fixed IP address for my Vercel deployments? says I need enterprise? But that can’t be right…

This is the first time I’ve tried hosting/deploying a website so bare with me - and if you need more information, just let me know.

Every post submitted after mine has multiple answers… is there no answer to this problem???

Hey @egbaron-8542. Vercel Secure Compute provides dedicated IPs, and it’s only available on the Enterprise plan. On Hobby and Pro plans, IP is variable so you would need to use other authentication methods to restrict DB access. And you can restrict access to deployments through Deployment Protection and Firewall custom rules

I hope that makes sense. If you need more info, please let me know