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:

pip install test/requirements-test.txt
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.

Files for awsiamvault, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size awsiamvault-0.0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View
Filename, size awsiamvault-0.0.2-py3-none-any.whl (14.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page