Convenient wrapper for executing codes on AWS for connecting and fetching credentials from vault
Project description
Vault Credential Fetcher
Convenient wrapper for executing codes on AWS for connecting and fetching credentials from vault.
Install with pip
$ pip install AwsVaultCredential
Usage
-
Import the library.
from AwsVaultCredential import VaultCredentialFetcher
-
Create an instance.
vc = VaultCredentialFetcher(project_path="", logger=<your_logger_instance>, environment="", vault_region="", vault_role_id="", display_vault_info=True, vault_config_path="")
Arguments (all are mandatory):
project_path
: Project name, which would serve as the logger's name (if specified), and the prefix for log filenames.logger
: your Logger Instance"environment"
: Execution Environment"vault_region"
: Region in which application is deployed on AWS while vault onborarding"vault_role_id"
: Role ID/Role Name specific to your application when onboarded"display_vault_info"
: By default it is False, used for displaying vault info"vault_config_path"
: Path where vault config is kept, relative to project path
-
Get a logger and start logging.
VaultCreds = vc.get_vault_cred()
Author
© 2022, Priyansh Gupta.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for SecretManagerCredentials-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 154a5a7ea3491bd4f06d945f96fafca3a30951c32865ba3ae1c1d047510b681a |
|
MD5 | 6fd258c2c55d49cd635d1fa1d31b5b21 |
|
BLAKE2b-256 | fef583f6426b70d65f24a33cf0f3377a19735d3d7e02c77eaa871df184a98e01 |
Close
Hashes for SecretManagerCredentials-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9431bfc5e21a3a0b95fea76d8eafb7dce3268a1cc10bc0a589583e5fa4c6d5 |
|
MD5 | 3ed27e3cccf45d2f235206ca1e49d65a |
|
BLAKE2b-256 | 4c2f0fff506f35b175eaa5cc6205a851b1b7ab8bcad211fc3aca1b690da48cfb |