I'm using AWS Glue to write data into PostgreSQL. I'm using DynamicFrame to do it and I write using Glue Catalog. But I face with “SSL error: handshake_failure” when writing.
But when I testes connection I created in Glue Console (without specifying any SSL details) it shows that the test was successful. Even Glue Crawler was successful.
But when I start the job that writes data into PostgreSQL it fails due to “handshake_failure”. I tried to add different JDBC string parameters to avoid it (like ssl=true&sslmode=allow, etc), added the path to certificate in S3 bucket, but it didn’t help.
Could someone help with this issue?
I resolved this issue using next approach.
Glue JDBC connection setup: Require SSL connection - false
Connection URL string - "jdbc:postgresql://host-name.rds.amazonaws.com:5432/database-name?ssl=true&sslmode=allow"
When writing to database I used next approach:
Also, this issue would be possible to resolve just using native spark ways to push data into PostgreSQl.