Skip to main content

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

  1. Import the library.

    from AwsVaultCredential import VaultCredentialFetcher
    
  2. 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
  3. 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

SecretManagerCredentials-0.0.5.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

SecretManagerCredentials-0.0.5-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page