aws-secrets
Retrieve AWS secrets and interact with Secrets Manager and SSM Parameter Store.
This crate works with Cargo with a Cargo.toml like:
[]
= { = "0.1.1", = ["all"] }
= "1" # optional
= { = "1", = ["full"] }
Getting started
Add some usage to your application. Here's an example of using aws-secrets in code.
Note: this sample requires the
allfeature to be enabled.
use ;
use ;
async
Examples
You can check out sample usage of this crate in the examples/ folder in the project repo on GitHub.
Dependencies and Features
This library uses only the minimum required dependencies, in order to keep the overall size small. It leverages the AWS SDK for Rust for making calls to AWS APIs.
Note: Any desired features must be enabled individually, as no features are enabled by default.
Available features
all- Enables support for AWS Secrets Manager and SSM Parameter Store.params- Enables support for AWS SSM Parameter Store.sm- Enables support for AWS Secrets Manager.
Enabling Features
Update the project's Cargo.toml to include any optional features to enable:
[]
= { = "*", = ["all"] }
Contributing
Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
Check out the Contributing section in the docs for more info.
License
This project is proudly licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).
aws-secrets can be distributed according to the MIT license. Contributions
will be accepted under the same license.