django-aws-secrets-env-setup
This is a helper function to set up environment variables from AWS secrets manager.
The main function to use is set_env_variables(default_region_name, stop_on_failure=False, **kwargs).
In addition to default_region_name and stop_on_failure, there are several kwargs that can be passed.
Parameters
- If
os.environ[region_name_env_name]is not set, thedefault_region_namewill be used as the region name instead.region_name_env_nameis the name of the environment variable to check for the region name.- Default:
'SECRETS_REGION_NAME'
- Default:
stop_on_failureis a flag to indicate whether or not errors should be fatal. It is strongly recommended for this to be set to True in a production environment.secrets_nameis the name of the secret to pull secrets from.- Default:
os.environ[secrets_name_env_name]'secrets_name_env_nameis the name of the environment variable to use ifsecrets_nameis not in kwargs.- Default:
'SECRETS_NAME'
- Default:
- Default:
aws_access_key_idis the ID of the AWS access key to be used.- Default:
os.environ[aws_access_key_id_env_name]'aws_access_key_id_env_nameis the name of the environment variable to use ifaws_access_key_idis not in kwargs.- Default:
'AWS_ACCESS_KEY_ID'
- Default:
- Default:
aws_secret_access_keyis the AWS key used to access the secrets.- Default:
os.environ[aws_secret_access_key_env_name]'aws_secret_access_key_env_nameis the name of the environment variable to use ifaws_secret_access_keyis not in kwargs.- Default:
'AWS_SECRET_ACCESS_KEY'
- Default:
- Default:
service_nameis the service name of the secrets manager to connect to.- Default:
'secretsmanager'
- Default:
Metadata
Release files for django-aws-secrets-env-setup 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-aws-secrets-env-setup-0.3.tar.gz | 3.8 kB | Without provenance | Details for django-aws-secrets-env-setup-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_aws_secrets_env_setup-0.3-py3-none-any.whl | Python 3 | none | any | Details for django_aws_secrets_env_setup-0.3-py3-none-any.whl |
Total release size: 8.2 kB
Release files / django-aws-secrets-env-setup-0.3.tar.gz
| Download URL | django-aws-secrets-env-setup-0.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c776f1c622a978f646fcf7fe0ab9201c0039a0f58c49b41e1dbfc2ddbef636d3
|
|
BLAKE2b-256 checksum How to use checksums |
9b2c608046312075b0d313362217cbe0da06ae93c96cb1154855f5e7a1f63908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.9
|
Release files / django_aws_secrets_env_setup-0.3-py3-none-any.whl
| Download URL | django_aws_secrets_env_setup-0.3-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34c61a08985dec0e95bcd52bff178298e3fe2e15a8d90be6fd78a21b8961c709
|
|
BLAKE2b-256 checksum How to use checksums |
5dde24acc0ee71015961f3f3626ee8fd418d3b57b28653ffe8b3decbe9fda06f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.9
|
Security for django-aws-secrets-env-setup 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.