awsm-env 0.2.5

A lightweight utility for syncing AWS Secrets Manager secrets to environment variables.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod aws_parameter_store;
mod aws_secrets_manager;

use anyhow::Result;

pub use aws_parameter_store::AwsParameterStoreProvider;
pub use aws_secrets_manager::AwsSecretsManagerProvider;

pub struct ResolvedSecret {
    pub id: String,
    pub secret: String,
}

/// A type that implements `Provider` allows provision of secret configurations
pub trait Provider {
    #[allow(async_fn_in_trait)]
    async fn provide_secrets(&self, ids: Vec<String>) -> Result<Vec<ResolvedSecret>>;
}