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.

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
답변함 일 년 전
AWS
전문가
검토됨 일 년 전

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

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

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

관련 콘텐츠