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

AWS RDS PostgreSQL集群HttpEndpoint无法启用问题求助

问题:AWS Aurora PostgreSQL 16.3集群无法启用HttpEndpoint

问题现象

运行PostgreSQL 16.3数据库集群,尝试通过EC2实例的程序修改数据库时触发错误:

"botocore.errorfactory.HttpEndpointNotEnabledException: An error occurred (HttpEndpointNotEnabledException) when calling the ExecuteStatement operation: HttpEndpoint is not enabled for resource arn:aws:rds:xxxx:xxxx:cluster:xxxx."

尝试过的操作及结果

  1. 执行CLI命令启用HttpEndpoint:
aws rds modify-db-cluster --db-cluster-identifier db-xxxx --enable-http-endpoint
  1. 添加--apply-immediately参数重试:
aws rds modify-db-cluster --db-cluster-identifier db-xxxx --enable-http-endpoint --apply-immediately

两次执行后返回的响应均显示HttpEndpointEnabled仍为false:

{
    "DBCluster": {
        "AllocatedStorage": xxxx,
        "DBClusterIdentifier": "db-xxxxx",
        ...
        "HttpEndpointEnabled": false,
        ...
}
  1. 尝试使用enable-http-endpoint命令:
aws rds enable-http-endpoint --resource-arn arn:aws:rds:us-east-2:xxxx:cluster:db-xxxx

触发错误:

An error occurred (InvalidParameterValue) when calling the EnableHttpEndpoint operation: Access Denied to API Version: APIDataApi

此外,已尝试开放安全组全流量,问题依旧。

解决方案

核心原因

Aurora PostgreSQL的数据API(即HttpEndpoint功能)在俄亥俄区域(us-east-2)暂未提供支持,该功能仅在AWS指定的部分区域可用。

解决办法

  • 若必须使用HttpEndpoint功能,需将数据库集群迁移至支持该功能的AWS区域(例如us-east-1、us-west-2等);
  • 若无法迁移集群,可改用传统的PostgreSQL连接方式(通过5432端口)让EC2实例访问数据库。

内容的提问来源于stack exchange,提问作者qualityPancakes

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.21 21:55:00