connect service to database hosted on RDS

Hello there, I’m working on setting up my projects python backend on Railway. I have a multi-tenant mysql database already deployed on AWS RDS. Im trying to determine the appropriate source to add to my inbound security rules for traffic coming from my Railway service. The project is is a0e7c4d4-48f1-4089-8272-47271bf20c35
4 Replies
Percy
Percy12mo ago
Project ID: a0e7c4d4-48f1-4089-8272-47271bf20c35
Brody
Brody12mo ago
railway services have dynamic ips, you would have to whitelist all ips 0.0.0.0/0 or all cidr ranges for your region https://utilities.up.railway.app/cidr-list?value=us-west1 which is not all that more secure than whitelisting 0.0.0.0/0
cam_ysidron
cam_ysidronOP12mo ago
I ended up doing that and it does indeed work, this is fine for now. Do you happen to know if supporting static ips is planned? Alternatively, I was looking into deploying the mysql db with Railway but I don’t see a way to effectively carry out a multi tenant strategy. It looked like I could only access the schema specified by the db name environment variable - is that true?
Brody
Brody12mo ago
static ips are planned https://community.railway.app/discuss/thread/static-dedicated-i-ps-de0b680b railways mysql database is just a simple mysql docker image
Want results from more Discord servers?
Add your server