Skip to main content

A small helper for getting a secretfrom Vault using IAM role credentials

Project description

aws-iam-vault

Helper to retrieve a secret from Hashicorp Vault using an EC2 instance's IAM role to authenticate.

Use on an AWS EC2 instance with a role that has access to the Vault path to be retrieved.

Install:

pip install awsiamvault

Use:

from awsiamvault import read_secret

secret = read_secret(region, vault_url, path)

Test:

nosetests -v --with-cover --cover-erase --cover-tests --cover-package=awsiamvault

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

awsiamvault-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

awsiamvault-0.0.1-py3-none-any.whl (14.7 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