Open ID Connect Provider - create the identity provider in a specific region

0

Hey,

I'm trying to create an Open ID Connect Provider in a specific region, I've noticed that this service is global.

I was wondering if there is a configuration in the AWS SDK to create the identity provider in a specific region, so it won't be global.

I'm currently using the AWS SDK GO V2, calling the function client.iamClient.CreateOpenIDConnectProvider to create the identity provider, is there any parameter I can pass to create it in a specific region?

Thanks, Ori

已提問 2 年前檢視次數 337 次
1 個回答
1

Hello,

AWS offers a wide range of services that are either global, regional, or specific to the Availability Zone and cannot be accessible from elsewhere. The majority of AWS managed services are regional in nature (except for IAM, Route53, CloudFront, WAF etc).

For example, using IAM, you create your users in a single location rather than in different regions. In the same manner, IdP's (SAML/OIDC) in IAM are global resources, and hence there is currently no request parameter for the API call - CreateOpenIDConnectProvider [1] to specify any restriction for region.

Specifically, in regards to Federating users with public identity service providers or OpenID Connect [2], the recommendation is to use Amazon Cognito [3] for mobile and web-based application scenarios as it does most of the behind-the-scenes work with public identity provider services for you. It works with the same third-party services and also supports anonymous sign-ins.

Also, please note that Cognito is a regional service, and hence the SAML/OIDC provider configuration settings [4][5] have to be made in the specific region where the Cognito resource exists.

I hope the shared information is insightful to your query. In case if you have any questions or concerns then please feel free to reach out.

References:

[1] https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html

[2] https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_federated-users.html

[3] https://aws.amazon.com/cognito/

[4] https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-oidc-idp.html

[5] https://docs.aws.amazon.com/cognito/latest/developerguide/open-id.html

profile pictureAWS
支援工程師
Yash_C
已回答 2 年前

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

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

回答問題指南