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
답변함 일 년 전
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
답변함 일 년 전

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

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

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

관련 콘텐츠