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개 답변
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
답변함 일 년 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠