AssumeRoleProvider Configuration Updates #906
rcoh
announced in
Change Log
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The API for
AssumeRoleProvider
has been updated to derive configuration fromSdkConfig
instead ofProviderConfig
.An example of updating code to use the new API is here.
This provides a number of advantages, most importantly, making it possible to use
aws_config::load_from_env
as the base set of configuration when constructing yourAssumeRoleProvider
.If no custom configuration is provided,
build()
will fall back to usingaws_config::from_env()
as the source of configuration. This can be overidden withAssumeRoleProvider::builder("role...").configure(<sdkconfig>)
In either case, this means that
region
is not required to be set unless you need a different value than you would otherwise get from the runtime environment.Finally:
AssumeRoleProvider::build
has been renamedbuild_from_provider
.build()
will now source a credentials provider fromSdkConfig
instead. You can specifySdkConfig
to source defaults from with.configure(&config)
async
Beta Was this translation helpful? Give feedback.
All reactions