#AWS #STS

sts_profile_auth

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

12 releases

new 0.5.7 Oct 14, 2020
0.5.6 Oct 13, 2020
0.5.5 Jul 27, 2020
0.5.4 Jun 11, 2020
0.3.5 Jan 20, 2020

#55 in Authentication

Download history 43/week @ 2020-06-25 86/week @ 2020-07-02 49/week @ 2020-07-09 90/week @ 2020-07-16 88/week @ 2020-07-23 80/week @ 2020-07-30 52/week @ 2020-08-06 56/week @ 2020-08-13 50/week @ 2020-08-20 50/week @ 2020-08-27 82/week @ 2020-09-03 125/week @ 2020-09-10 49/week @ 2020-09-17 79/week @ 2020-09-24 87/week @ 2020-10-01 105/week @ 2020-10-08

324 downloads per month

Custom license

20KB
385 lines

sts_profile_auth

crates.io Build Status Documentation codecov

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

~21MB
~491K SLoC