Hey, I've got a question: If your DB sits in AWS private subnet, how can you connect Prisma Data Proxy to it?
😠1
✅ 1
n
Nurul
09/28/2022, 12:34 PM
Hey @Omri Goldberger 👋
Welcome to our community! prisma cool
You can whitelist a set of IP addresses which Prisma Data Proxy will provide to you. Data Proxy will communicate with your database using only those specific IPs. Here’s a reference on how you can utilise Static IPs
o
Omri Goldberger
09/28/2022, 2:12 PM
Unfortunately, that doesn't help if the DB is sitting in a private subnet with a NAT/egress gateway for security reasons (which is the right approach for 99.9% percent of the cases)
The reference you sent me can be used only if you place your DB in a public subnet which is something one should never (almost) do @Nurul
n
Nurul
09/29/2022, 7:51 AM
That’s true, if the DB is in a private subnet then static ips won’t work for you. We are still in the discovery phase of solving the Data Proxy -> private subnet problem. If you have any feedback on how we could best tackle the issue for your use case, I would love to hear it!
o
Omri Goldberger
09/29/2022, 2:18 PM
So what would you say is the solution to working with serverless architecture and prisma? It seems as there is none
n
Nurul
09/30/2022, 12:04 PM
Unfortunately there is no proper solution as of today for this use case. I’ll reach out to you as soon as we have a solution for this case.