You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 00:46:07