REST API gateway cross region VPC link

0

Is it possible to create a cross region VPC link from REST API gateway to an NLB? e.g. API gateway is in eu-west-1, NLB is in us-west-1

I can see from this article that VPC link uses AWS private link https://aws.amazon.com/blogs/compute/understanding-vpc-links-in-amazon-api-gateway-private-integrations/

and I can see from this article that private link supports inter-region VPC peering https://aws.amazon.com/about-aws/whats-new/2018/10/aws-privatelink-now-supports-access-over-inter-region-vpc-peering/

so it seems like it should be possible, however, I'm not sure how to achieve it

2 個答案
1

Your logic makes sense, however based on this: https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-private-integration.html When you create the VPC Link, you must have the Network Load Balancer created in the same Region as your API for the Network Load Balancer to be present in the list. If you try in your console even if you do the VPC Peering before creating the VPC Link., it is not possible to choose the NLB in the VPC Link configuration. If this helps you please accept the answer.

profile pictureAWS
已回答 1 年前
profile picture
專家
已審閱 21 天前
0

I have a similar problem, that I cannot find a solution to. I too have a setup where I have an APIGW in us-east-1, targeting an NLB in a private subnet in the same region. I want to have another APIGW in another region, but to target the NLB in us-east-1.

For example: US-EAST-1: REST API call --> (public subnet) APIGW --> (private subnet) NLB --> ALB --> ECS.

US-WEST-1: Rest API call --> (public subnet) APIGW --> (target NLB in us-east-1 and continue the flow in us-east-1)

Or if that is not possible it is also fine to have NLB also in US-WEST-1 and target the ALB in us-east-1. I have setup VPC peering, but I cannot seem to configure the target groups in NLB or ALB for cross region.

Dejan
已回答 1 年前

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

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

回答問題指南