#AWS #STS

sts_profile_auth

Authenticate using a profile in your aws credential file when using rusoto

7 releases

✓ Uses Rust 2018 edition

0.5.2 Mar 19, 2020
0.5.1 Mar 9, 2020
0.4.0 Feb 22, 2020
0.3.5 Jan 20, 2020

#50 in Authentication

Download history 103/week @ 2020-01-20 30/week @ 2020-01-27 76/week @ 2020-02-03 32/week @ 2020-02-10 84/week @ 2020-02-17 208/week @ 2020-02-24 88/week @ 2020-03-02 62/week @ 2020-03-09 128/week @ 2020-03-16

245 downloads per month

Custom license

18KB
357 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(())
    }

lib.rs:

This crate extends Rusoto's existing authentication infrastructure to support this feature.

Dependencies

~20MB
~479K SLoC