Connect to Aurora Serverless using EC2 as Proxy

妖精的绣舞 提交于 2019-12-06 11:24:37

问题


Not a duplicate of AWS Aurora MySQL serverless: how to connect from MySQL Workbench.

Aurora Serverless doesn't support public connections yet.

I used Cloud9 to create an EC2 instance on the same VPN as the database. I then connected to the database from the Cloud9 terminal.

My (GraphQL Prisma) service that I'm attempting to host (on Zeit Now) only takes a HOST and a PASSWORD for configuration.

How can I make the EC2 instance act as a proxy that I can treat exactly as a database endpoint. Can tunneling fully do that and I'm just bad at it?


回答1:


I think this blog may help you. The idea, is make a forwarding port from ec2-dns:3306 to aurora-serverless-cluster-dns:3306



来源:https://stackoverflow.com/questions/52448301/connect-to-aurora-serverless-using-ec2-as-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!