Skip to main content

Secret Manager AWS

Project description


Secret manager for Python

How to use

Add dependency -

Set environment variable -
APP_ENV = prod/staging
APP_NAME = IAMservice

In config file:
from secretmanager import secrets

redshift_secrets = secrets['redshift']
REDSHIFT_HOST = redshift_secrets['host']
REDSHIFT_PORT = redshift_secrets['port']
REDSHIFT_USER = redshift_secrets['username']
REDSHIFT_PASS = redshift_secrets['password']
REDSHIFT_DB = redshift_secrets['dbname']

Secret manager changes -
Secret format is -

Go to secret manager and add secret name in above defined format eg(IAMservice_prod_redshift)
Add key value pair inside as -
host = <redshift_host>
port = <redshift_host>

SECRET_NAME will be used to access secret in your code.
In above example SECRET_NAME = redshift

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 secret-manager, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size secret_manager-0.0.3-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size secret-manager-0.0.3.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

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