19 releases
0.7.2 | Feb 27, 2023 |
---|---|
0.7.1 | May 8, 2022 |
0.6.3 | Apr 20, 2022 |
0.6.2 | Jul 10, 2021 |
0.5.2 | Mar 19, 2020 |
#524 in Authentication
Used in s3-ext
21KB
373 lines
sts_profile_auth
This crate extends Rusoto's existing authentication infrastructure to let you use profiles specified in a config or credentials file. The entries look something like:
[profile special-profile]
region = us-east-1
role_arn = arn:aws:iam:867530912345:role/Special_Role
source_profile = default
This crate extends Rusoto's existing authentication infrastructure to support this feature.
Usage:
use rusoto_core::Region;
use rusoto_ec2::Ec2Client;
use sts_profile_auth::get_client_sts;
fn main() -> Result<(), Error> {
let ec2 = get_client_sts!(Ec2Client)?;
Ok(())
}
Dependencies
~19–32MB
~582K SLoC