Connecting to mysql database store hosted in AWS EC2 from another AWS account using glue connection.

0

I have two AWS accounts say S1 and S2. In S1 AWS account i created and EC2 instance and within that instance i hosted mysql database containing some tables. Now i want to connect to this data store from other AWS account S2 using AWS glue connection. I created connection in S2 AWS account using JDBC and other related credentials but when i test my connection it fails. Can you please guide me how can i successfully create connection. Thank you.

已提问 2 年前251 查看次数
1 回答
1

Hi Imran,

First you need to have network connectivity between the two accounts. For this I would advice looking at VPC Peering, AWS PrivateLink or using a robust enterprise networking through AWS Transit Gateway. After establishing network connectivity, you need to use Glue mode route through your VPC the traffic and provide the proper JDBC connection string depending on the networking alternative you chose.

This steps should enable you to connect to your database in other account!

AWS
已回答 1 年前
AWS
专家
已审核 1 年前

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

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

回答问题的准则