Skip to main content

Parameter store for secrets

Project description

param-store works with parameter stores (e.g. EC2 Parameter Store) to resolve specific parameters. It is designed to be pluggable so that stores can be created for e.g. Vault or Azure Key Vault.

A use-case is to store secrets in the EC2 parameter store and resolve them automatically.

Installation

pip install param-store

Usage

As a standalone package

from param_store import EC2ParameterStore
from param_store import interpolate_dict

data = {
    'key': 'my-secret-{{ parameter-1 }}'
}

store = EC2ParameterStore()
result = interpolate_dict(data, store)
assert result[key] == 'my-secret-password'

In combination with django-environ

from environ import Env
from param_store import EC2ParameterStore
from param_store.contrib import resolve_django_environ

env = Env()
store = EC2ParameterStore()
resolve_django_environ(env, store)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
param_store-0.2.1-py2.py3-none-any.whl (4.0 kB) Copy SHA256 hash SHA256 Wheel py2.py3
param-store-0.2.1.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page