AWS Datalake Glue Connection timeout SQL Server

0

Hi TEam, Me ew to AWS Data lake configuration. As per the doc, it refers to create the Glue connection which will be internally used by AWS BluePrint. My database is running on EC2 instance of different AWS accounts.

I have setup the connection using jdbc with connection string "jdbc:sqlserver://SRV_IP:1433;database=db_name" and "jdbc:sqlserver://SRV_IP:1433;database=db_name", but the test connection failed with following error:

Check that your connection definition references your JDBC database with correct URL syntax, username, and password. The TCP/IP connection to the host SRV_IP, port 1433 has failed. Error: "Connection timed out: no further information. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".

Following already configured/tested,

  1. The connection security group has inbound traffic for port,
  2. the subnet used in connection has the route table points to NAT gateway, 3)Able to connect the DB over the internet hence no issue with db/ec2 security group.

Please advise. me referring: https://aws.amazon.com/blogs/big-data/integrating-aws-lake-formation-with-amazon-rds-for-sql-server/ Except the DB is self-managed on AWS EC2.

REgards, Nikhil Shah

  • Is that connection using the same VPC the DB is in, another VPC or no VPC at all for the Glue job?

asked a year ago478 views
2 Answers
0

Hi Gonzalo, Both Glue and ec2 are in separate accounts. So in different vpc.

answered a year ago
0

Glue cannot connect to a public API without a NAT gateway on the VPC it runs on.
You could run Glue without a VPC since you say SQL Server has a public IP.
Or use a private ip to access the SQL Server (starting by 10, 172 or 168) and then do the peering between the VPCs

profile pictureAWS
EXPERT
answered 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