- Newest
- Most votes
- Most comments
Based on the available information, it appears that using a custom ProviderArn such as Cognito with AssumeRole for identity-enhanced sessions is not currently supported. The identity-enhanced IAM role sessions are specifically designed to work with AWS IAM Identity Center (formerly known as AWS Single Sign-On).
-
It is not possible to use a Cognito user pool as a context provider for AssumeRole to create identity-enhanced sessions. The ProviderArn for identity-enhanced sessions is specifically set to "arn:aws:iam::aws:contextProvider/IdentityCenter". Attempts to use a different ProviderArn, such as one from Cognito, will result in an "Invalid ProviderArn" error.
-
Currently, the only way to leverage identity-enhanced sessions is through IAM Identity Center. The feature is tightly integrated with this service, allowing for the propagation of user identity information from IAM Identity Center to other AWS services.
-
Using IAM Identity Center for customer-facing identities is generally not recommended. IAM Identity Center is primarily designed for workforce identities within an organization, not for managing external customer identities. For customer-facing applications, services like Amazon Cognito are more appropriate.
For your use case of propagating customer identities for better auditing and fine-grained access control, you might need to explore alternative solutions. While identity-enhanced sessions offer benefits for workforce identities, they are not designed for customer-facing scenarios.
You could consider implementing a custom solution that includes the necessary identity information in your application's requests to AWS services. This might involve passing identity information through request headers or parameters, and then configuring your AWS resources to log and use this information. However, this approach would not have the same level of integration with AWS services as identity-enhanced sessions.
Alternatively, you might want to explore other AWS services or features that could help achieve your goals of improved auditing and access control for customer identities, even if they don't use the specific mechanism of identity-enhanced sessions.
Sources
Identity-enhanced IAM role sessions - AWS IAM Identity Center
Configure Amazon Q Business with AWS IAM Identity Center trusted identity propagation | AWS Machine Learning Blog
Making authenticated Amazon Q Business API calls using IAM Identity Center - Amazon Q Business
answered a year ago
Relevant content
asked 4 years ago
asked 3 years ago
asked 3 years ago
- AWS OFFICIALUpdated 7 months ago
