How does apigateway support different regions

0

I want build services in regionA with Account A, so that regionB with accountB, regionC with accountC can send api requests with apigateway to service in regionA. So I want to know that the mechanism of apigateway support different regions and the process of authenticating the different regions. Thanks!

  • forgot to attention, region A is CN region, and region B and region C based in US-east, is it accessible in api gateway?

已提問 2 年前檢視次數 1316 次
3 個答案
2

API Gateway doesn't care where the requests are coming from (except for private APIs). This means that they can be from the same region, from other regions, or from clients all over the world. All it cares is that the client presents the right credentials.

API Gateway supports several authorization methods: IAM, Cognito and custom. In your case, because the API clients are actually services running in AWS, I would recommend using IAM authorization. You will need to establish an API Gateway resource policy that allows the other accounts to call the API. You will also need to create IAM roles in the other accounts that allow access to the API.

You can find more information here.

profile pictureAWS
專家
Uri
已回答 2 年前
0

To add to that, when you make requests from your Account B in Region B, or Account C in Region C using the IAM authorization, you'll need to sign the request using AWS SigV4 (see https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html)

已回答 2 年前
0

For some additional info, please have a look at this post which covers a number of scenarios for building a global application or API .. https://repost.aws/questions/QUSs8ODCyJSRWR7mawaUIl4g/multi-region-strategy-for-api-gateway

profile pictureAWS
micah
已回答 2 年前

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

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

回答問題指南