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 Risposta
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
con risposta un anno fa
AWS
ESPERTO
verificato un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande