Multi cloud VPN connection to RDS

0

Hi, i've created a VPN connection from GCP to AWS following this guide: https://blog.searce.com/connecting-clouds-aws-gcp-771eb25a2dc3 Then i've created a vm con GCP and i've tested the connection to AWS. On AWS i've a Elasticache instance which i can connect without problems, but if i try with the RDS instance i've:

ERROR 2002 (HY000): Can't connect to MySQL server on '...' (115)

Security group and firewall rules seems right in AWS and GCP. Both Elasticache and RDS instance are in the same VPC and the same subnets group. I also tried to set "Public access" on RDS without results.

Some suggestions on that? Thanks

已提问 1 年前446 查看次数
1 回答
0

Hi.

Since it's on the same subnet as Elasticash, I don't think there's a network problem.

[Confirmation on AWS side]
Are the information such as the inbound port and source IP address of the RDS security group correct?

[Confirmation on Google Cloud side]
Can I create Cloud SQL for MySQL within Google Cloud and connect from a Google Cloud virtual machine?

profile picture
专家
iwasa
已回答 1 年前
  • On AWS the security group rules seem correct (i tried with a 0.0.0.0/0 too), i tested the connection from the GCP instance to my backend on ECS with curl and it works.

    On GCP i've tested a VM with mysql and it works too. For now i can't test Cloud SQL instance because i need permissions and i'm waiting for the admin.

    Update: i've created an EC2 instance with mysql and i can connect on mysql from GCP

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则