Skip to content

ERROR: My JDBC connection isn't connecting in Glue Connection

0

Hello, I'll explain my goal:

I have two databases, one for production and one for staging, both on PostgreSQL in RDS. I want to transform some tables from my production database and move them to the staging one. For example, I want to change the email column to mail@mail.com instead of the real value.

What I've Tried Here's what I've done so far: I created a connection in a connector for the production database. I selected the Amazon Aurora connection type, then I modified the URL, changing mysql to postgresql. I've set up user and password authentication, and in the network options, I've configured the VPC, the subnet associated with the production database, and the security groups for the production database.

Once that was ready, I created three endpoints:

com.amazonaws.eu-west-1.s3 com.amazonaws.eu-west-1.glue com.amazonaws.eu-west-1.rds

Next, for the three security groups that my production database uses, I added the following inbound rules:

PostgreSQL - TCP - 5432 - sg-name1 / example1 PostgreSQL - TCP - 5432 - sg-name2 / example2 PostgreSQL - TCP - 5432 - sg-name3 / example 3

These rules are in all three security groups, and I've even added an inbound rule for the security group itself in all three. Additionally, there are these inbound rules in example 1:

com.amazonaws.eu-west-1.s3

In a final attempt, I even added an inbound rule for the private IP of the production database:

PostgreSQL - TCP - 5432 - 1x.3x.2x.1x/00

IAM Role Configuration The IAM role has the following policies:

AdministratorAccess AmazonDataZoneGlueManageAccessRolePolicy AmazonEC2FullAccess AmazonOpenSearchDirectQueryGlueCreateAccess AmazonRDSFullAccess AmazonS3FullAccess AmazonSSMManagedInstanceCore AWSGlueConsoleFullAccess AWSGlueServiceRole AWSNetworkManagerFullAccess

The syntax for my JDBC string is: jdbc:postgresql://examplename.cexample.eu-west-1.rds.amazonaws.com:5432/examplename

I don't know what else to do. The error remains the same, even though the security groups appear to be correct.

This is the error from the test:

Failed to test connection AwsGlueDataBrew-Alkamel_prod due to FAILED status.

CloudWatch Logs: TLS1.2 connection failed: FATAL: no pg_hba.conf entry for host "1.1.1.1", user "example", database "example", no encryption TLS 1.2 connection to data store legacy properties failed. SSL connection to data store failed. Retrying without SSL.The authentication type 10 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.

2025-09-10T10:49:17.307Z Attempting to connect without SSL: jdbc:postgresql://example.cexample.eu-west-1.rds.amazonaws.com:5432/examplename

2025-09-10T10:49:17.310Z Check that your connection definition references your JDBC database with correct URL syntax, username, and password. FATAL: no pg_hba.conf entry for host "1.1.1.1.1, user "examplename, database "examplename", no encryption

asked a year ago401 views

2 Answers
6
Accepted Answer

Please take a look and try to fix at the following:

  1. Force SSL in JDBC URL

  2. Use Compatible Authentication

  3. Check RDS Parameter Group

  4. Security Group Sanity Check

EXPERT

answered a year ago

0

Hey,

Hope you're keeping well.

It sounds like your Glue job can’t reach the RDS instance over JDBC due to a networking mismatch rather than IAM policy. Make sure the Glue connection’s VPC, subnet, and security group actually allow inbound traffic from the Glue ENIs to the RDS instance. In the RDS security group, the source of the inbound rule must be the security group attached to the Glue connection, not the DB’s own SG. Also confirm the subnet used by Glue has a route to the RDS subnet, and if they are in different VPCs you’ll need VPC peering or a PrivateLink endpoint.

Thanks and regards,
Taz

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.