- Newest
- Most votes
- Most comments
Heyy, It looks like your Glue connection to the PostgreSQL RDS is failing, and the CloudWatch logs are showing errors related to logging configuration rather than connection specifics. Here’s a quick checklist to diagnose the issue:
-
Endpoint & Credentials: Double-check that the RDS endpoint, username, and password are correct.
-
Network Configuration: Ensure that your Glue job has access to the RDS instance. Verify that the security groups and VPC settings allow communication between Glue and RDS.
-
JDBC URL: Make sure the JDBC URL is correctly formatted for PostgreSQL. It should look something like jdbc:postgresql://<endpoint>:<port>/<database>.
-
Timeout Issues: Check if there are any network issues or firewall rules that might be causing a timeout.
-
CloudWatch Errors: The errors in CloudWatch (Unrecognized format specifier) are related to logging configuration and might not be the root cause of your connection issue. Ensure your logging configuration is correct and compatible with your Glue setup.
check this for reference dox https://github.com/aws-samples/aws-glue-samples https://docs.aws.amazon.com/glue/latest/dg/what-is-glue.html https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html
I am getting the exact same error when trying to connect to RDS PostgreSQL from Glue.
Go to cloudwatch logs, you will see the output logs in /aws-glue/testconnection/output/<connection_name>. The error logs you shared show that glue connection was able to connect to the db.
I saw that same error and went to output logs and turned out this was the issue https://repost.aws/knowledge-center/glue-resolve-connection-error. Changing the parameter password_encryption to encrypt with md5 worked.
Relevant content
- asked 3 months ago
- asked 2 years ago

Thank you for your answer. But I haven't solved it yet.
Accessed via pgAdmin4 from outside. DB access information is correct.
How do I check if security group and VPC settings allow communication between Glue and RDS?
The connection URL is automatically entered based on the RDS instance I selected.
Public access is also allowed for RDS, and it is a VPC, AZ such as the blue connection.
I don't know the cause of the error.