No target endpoints found for integration

3

I've been trying to set up API Gateway with CloudMap. I have configured a VPC Link and a CloudMap Namespace with one service pointing to one EC2 instance resource. Everything seems to be connected as required but I get an internal server error with the message "No target endpoints found for integration". There is no mention of this error anywhere in the documentation or elsewhere. Can anyone suggest what I might be doing wrong? Could it be something to do with the security group of the EC2?

asked 4 years ago720 views
3 Answers
2

Hi. I got the same error too. Did you include both the IPv4 address and Port in the Standard attributes for the service instances?
I got the error at first when I register the ip address only. It seems that API Gateway need both attributes.

The registered resources' attributes must include IP addresses and ports.
From https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-private.html#http-api-develop-integrations-private-Cloud-Map

reef
answered 4 years ago
0

Thanks, that link helped me. I'd registered my service in Service Discovery with an A record, but not a SRV record. I added an SRV record and it moved things on from 'No target endpoints found...'. (I now get 503 Service unavailable, but it's progress :-)

Chris L
answered a year ago
0

This worked for me as well. I was trying to setup my cluster in ECS using fargate. The service connect was working fine but requests were not reaching the services via http api gateway. After I added SRV records along with A records, both the connectivities started working fine. Thanks.

Mayank
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions