ddboline / sts_profile_auth

This crate automates the usage of sts profiles in ${HOME}/.aws/credentials.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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(())
    }

About

This crate automates the usage of sts profiles in ${HOME}/.aws/credentials.

License:MIT License


Languages

Language:Rust 100.0%