Crates.io | aws_cred |
lib.rs | aws_cred |
version | 0.0.4 |
source | src |
created_at | 2023-07-23 19:17:44.580664 |
updated_at | 2023-09-23 15:40:25.422287 |
description | Library for modifying aws credential files |
homepage | |
repository | https://github.com/klaatu01/aws_cred |
max_upload_size | |
id | 923922 |
size | 21,506 |
aws_cred
: AWS Credentials Manipulation Libraryaws_cred
is a Rust library that provides intuitive manipulation of AWS credentials. Store and edit your AWS credentials in the standard format with ease, removing the need for manual file editing.
Ensure you have Rust and Cargo already set up. If not, install them from rustup.rs.
Integrate aws_cred
into your project by adding the following line in your Cargo.toml
:
[dependencies]
aws_cred = "0.0.4"
Then, run the following to compile:
$ cargo build
let mut credentials = AWSCredentials::load()?;
credentials
.with_profile("default")
.set_access_key_id("ACCESS_KEY")
.set_secret_access_key("SECRET_KEY");
credentials.write()?;
For a detailed exploration and additional samples, refer to the API docs.
This crate is distributed under the terms of the MIT license. See the LICENSE file for details.