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?

질문됨 일 년 전492회 조회
2개 답변
0

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

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

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

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

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

관련 콘텐츠