5
votes

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
Seems like you want to be able to hit the DB directly from a public IP address. A NAT gateway might be more appropriate for tunneling to a private endpoint. Serverless Aurora does create network interfaces that NAT should be able to point to.Ben Balentine
@BenBalentine you could provide us an example? Currently, I want to create a tunnel to my aurora serverless cluster.Vladimir Venegas

1 Answers

1
votes

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