5

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?

mattferrin
  • 607
  • 2
  • 8
  • 19
  • 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 Sep 21 '18 at 23:09
  • @BenBalentine you could provide us an example? Currently, I want to create a tunnel to my aurora serverless cluster. – Vladimir Venegas Sep 25 '18 at 18:47

1 Answers1

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

Vladimir Venegas
  • 3,894
  • 5
  • 25
  • 45
  • Thank you! I may take a little while to test and select the best answer as I moved forward with a traditional RDS instance, but I will come back to and address this serverless route as a preferred solution. – mattferrin Sep 25 '18 at 20:18