AWS DMS终端无法连接PostgreSQL RDS实例的问题及解决
问题与解决:AWS DMS无法连接RDS PostgreSQL实例
问题详情
AWS DMS终端测试连接同VPC内的RDS PostgreSQL实例失败,报错信息如下:
Test Endpoint failed: Application-Status: 1020912, Application-Message: Failed to connect Network error has occurred, Application-Detailed-Message: RetCode: SQL_ERROR SqlState: 08001 NativeError: 101 Message: FATAL: no pg_hba.conf entry for host "172.31.30.62", user "postgres", database "postgres", no encryption
已确认的配置情况:
- DMS复制实例与RDS实例处于同一VPC
- RDS实例的安全组已开放PostgreSQL端口
- 个人电脑可正常远程连接该RDS实例
- 无法直接修改RDS的pg_hba.conf文件
解决方法
将DMS终端配置中的SSL mode设置为require后,连接测试成功。
内容的提问来源于stack exchange,提问作者Waldemar Neto
相关产品推荐
相关产品推荐

