A plug-n-play package fetch secrets form secret manager and insert them in the env
Project description
Secret Manager Env Injector
-
Getting Started
-
Available Methods
-
Prerequisites
- Python >= 3.6.x
- pip
-
Installation
$ pip install secret-manager-env-injector
-
Examples
- Using the Injector decorator
# import the decorator from SecretManagerEnvInjector import injector # it will inject the secret in the environment with the name provided or the secret name in finds in the arn @inject('arn:aws:secretsmanager:us-xxxx-1:xxxxxxxxxxxx:secret:xxxxxxxx-xxxxxxx', region='us-east-1', custom_secret_name='my-secret') def test(): print("hello world") test()
Available Methods
- JSONParser
Method | Params | type | default | Description |
---|---|---|---|---|
inject | arn | str | NA | ARN of the secret that needs to be extarcted |
inject | region | str | 'us-east-1' | select the AWS region |
inject | custom_secret_name | str | None | select the name with which you want the secret to be stored |
Note:
- The package is under development and will be prone to more frequent updates
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
Close
Hashes for secret-manager-env-injector-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6e269b89e436af74c961ba39fc17e6116c3b30a792cb789a4a113b53c411b16 |
|
MD5 | ad3e1b96c56928cff5582a22f222af3d |
|
BLAKE2b-256 | 36f78289769e1f7cb2ffd60b8b224785ff58e7406038cb6cf6c2707f06ebba2e |