Skip to content

DefaultAWSCredentialsIdentityResolver behaviour #3904

Answered by normj
AxelJunker asked this question in Q&A
Discussion options

You must be logged in to vote

It depends what subclass of AWSCredentials is resolved to by DefaultAWSCredentialsIdentityResolver. If it resolves to static credentials from your profile then the sync and async do the same. But if it resolves to a subclass that requires fetching or refreshing credentials like an assume role credential provider then the sync version will internally call async service or web call and block on that.

Our naming is not great here but think of AWSCredentials as essentially a credential provider handling fetching and refreshing credentials. The ImmutableCredentials is the immutable container of the access key id, secret key and possible session token at that point in time it is request from th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AxelJunker
Comment options

@normj
Comment options

normj Jul 3, 2025
Maintainer

Answer selected by AxelJunker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants