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 Answer
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
answered a year ago
AWS
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions