-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Credentials
to aws-config
#678
Conversation
… into aws-config-credentials
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just some minor questions/comments.
// `LazyCachingCredentialsProvider` will load credentials if it doesn't have any non-expired | ||
// credentials cached. See the docs on the builder for the various configuration options, | ||
// such as timeouts, default expiration times, and more. | ||
let sts_provider = LazyCachingCredentialsProvider::builder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about making it possible to directly construct the AssumeRoleProvider
so that programmatic (without a profile file) access of assumed role credentials is easy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's a good goal (although there are actually several different variants to handle, so probably a TODO item)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to leave a breadcrumb: awslabs/aws-sdk-rust#3
df04b41
to
3922d83
Compare
Motivation and Context
#655
This config migrates
aws-auth-providers
intoaws-config
. This enables a relatively seamless instantiation of service clients.Description
AsyncProvideCredentials
toProvideCredentials
ProvideCredentials
to be a newtype futureaws-auth-providers
toaws-config
aws-auth-providers
NoCredentials
when a service builder is constructed directly.ProvideCredentials
now also includes aDebug
boundArc<dyn ProvideCredentials>
with the newtypeSharedCredentialsProvider
in the property bagTesting
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.