How to enable HttpEndpoint in Aurora Serverless v2

0

I am getting below error while connecting Aurora serverless v2 from lambda function. I tried modifying Aurora PG but not getting option to enable HttpEndpoint as suggested in the doc. Somewhere it's mentioned that HttpEndpoint is automatically enabled in Aurora serverless v2 PG. But then why this error is coming?

Error software.amazon.awssdk.services.rdsdata.model.BadRequestException: HttpEndpoint is not enabled for cluster database-aurora-serverless-v2. Please refer to https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html#data-api.troubleshooting (Service: RdsData, Status Code: 400, Request ID: 94d4dc81-70c6-4fc1-84e7-4f95c6ced967)

Vaibhav
已提問 1 年前檢視次數 2504 次
2 個答案
1

Unfortunately, you can't use the Data API with Aurora Serverless v2 as mentioned in this documentation page: HttpEndpoint is not enabled for cluster <cluster_ID>

As you can read in this other answer, AWS support searched internally, and there's a feature request on file, but it still needs to be released. Please get in touch with your AWS Account team so they can keep track of the feature request and register your interest.

If the answer is helpful, please click "Accept Answer" and upvote it.

profile picture
專家
已回答 1 年前
profile picture
專家
已審閱 1 年前
  • Ivan, I came to the same conclusion as you.

0

Hi, yes, HttpEndpoint is automatically enabled in Aurora serverless v2. So, you might have a connectivity issue to it.

You should follow guidance of section "Verify your connection to the Aurora endpoint" in https://repost.aws/knowledge-center/troubleshoot-connecting-aurora by telneting it from you laptop. If you can't connect, you te secgroup protecting the http endpoint is probably the blocker (allowed source addresses or tcp port)

See https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Overview.RDSSecurityGroups.html

and

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_SettingUp_Aurora.html#CHAP_SettingUp_Aurora.SecurityGroup

You will have to adapt it for allowing first your laptop then your lambdas by allowing the addresses of the vpc to which they are attached. When working on your laptop and lambdas, you can remove the secgroup rules corresponding to the laptop.

To more easily debug the problem from the vpc of your lambdas, you may want to start an EC2 on this vpc and connect to it via ssh to be able to use telnet, etc. to debug efficiently.

profile pictureAWS
專家
已回答 1 年前
  • Hi Didier, can you please post the link to the documentation where it says that the Data API is available in Aurora Serverless v2? Is there any public information, or you have some privileged information looking at internal AWS systems? I tested a few weeks ago, and this was indeed not available in v2, just in v1.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南