Thin wrapper for the AWS Secrets Manager library. Allows for getting secrets in a standard way.
Reason this release was yanked:
README typo
Project description
SLD Secrets Getter
Very thin wrapper for the AWS Secrets Manager library for getting secrets in a standard way.
- Free software: MIT license
Usage
Pre-requisites
- AWS credentials
- This package assumes the AWS cli environment variables have been configured for authentication. Alternatively, you can provide the values for those variables to the constructor.
Example
Install the package:
pip install sld.secrets_getter
Running with AWS cli environment variables set:
from secrets_getter import SecretsManagerService
secrets_service = SecretsManagerService()
secrets = secrets_service.get_secrets("NAME_OF_AWS_SECRETS_MANAGER_SECRETS_SET")
A dict
with the key value pairs from the Secrets set is returned.
Providing the AWS cli credentials to the constructor:
from secrets_getter import SecretsManagerService
region = "us-west-2"
key_id = "AWS_ACCESS_KEY_ID"
secret_access_key = "SECRET_ACCESS_KEY"
secrets_service = SecretsManagerService(region=region, access_key_id=key_id, secret_access_key=secret_access_key)
secrets = secrets_service.get_secrets("NAME_OF_AWS_SECRETS_MANAGER_SECRETS_SET")
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
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 sld.secrets_getter-0.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7544c6e804d4557f1d57d88a0f8d723aff43895bd6f8cbbf8028f9d94b03ce3e |
|
MD5 | 35e545751a0e81f3a826ea9620647379 |
|
BLAKE2b-256 | 8add87d6e5617d00c25cf8e8d9b33ae538b778832578c404ab9fda8e4a61124f |