sts_profile_auth

Crates.iosts_profile_auth
lib.rssts_profile_auth
version0.7.2
sourcesrc
created_at2020-01-20 17:56:51.705085
updated_at2023-02-27 11:40:10.248865
descriptionAuthenticate using a profile in your aws credential file when using rusoto
homepagehttps://github.com/ddboline/sts_profile_auth
repositoryhttps://github.com/ddboline/sts_profile_auth
max_upload_size
id200509
size21,634
Daniel Boline (ddboline)

documentation

README

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(())
    }
Commit count: 73

cargo fmt