- Newest
- Most votes
- Most comments
I'm having a little trouble following where each of the log snippets is coming from.
Something to check: If you're calling API Gateway and then it is calling the PrivateLink endpoint, check to see that you've configured API Gateway to send the URI request through to PrivateLink. By the looks of it the query parameters are being sent (because sessionUUID
is present but perhaps the URI request string isn't?
Also: Why go API Gateway -> PrivateLink -> NLB
; why not just connect then directly API Gateway -> NLB
as per the documentation?
When you integrate with a backend in a VPC you need to use a VPC Link to talk to an NLB in the VPC, as described in the tutorial. As you need to define an integration for each API endpoint, you could use the same VPC link for all of them and in each such integration you can define a different path. If you use {Proxy+} integration, which maps all the subset of the paths where it is configured to the same backend, it will be up to the backend to decide what to do based on the path which will be included in the JSON payload.
Thanks! I will give this a shot.
Relevant content
- Accepted Answerasked 15 days ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
Thanks for responding. I was going by what i saw in the documentation. this the last line of the link you posted. "After the Network Load Balancer is created, note its ARN. You will need it to create a VPC link in API Gateway for integrating the API with the VPC resources behind the Network Load Balancer." I can't figure out how to post the screenshot here. But the log snippet is the result of the "Test" stub that API gateway provides so you can test without authorization on the aws console
I would troubleshoot this by setting up an EC2 instance in the VPC where your HTTP endpoint is; making sure that it can connect to the NLB (that API Gateway will use) and therefore onto the endpoint. If that works, then API Gateway should work too.