Crates.io | sts_profile_auth |
lib.rs | sts_profile_auth |
version | 0.7.2 |
source | src |
created_at | 2020-01-20 17:56:51.705085 |
updated_at | 2023-02-27 11:40:10.248865 |
description | Authenticate using a profile in your aws credential file when using rusoto |
homepage | https://github.com/ddboline/sts_profile_auth |
repository | https://github.com/ddboline/sts_profile_auth |
max_upload_size | |
id | 200509 |
size | 21,634 |
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(())
}