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
질문됨 일 년 전2557회 조회
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
전문가
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전
  • 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
전문가
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인