Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

AWS SSM parameter store client that constructs nested dictionary out of hierarchical path

Project description

aws-parameter-store

AWS SSM parameter store client that constructs nested dictionary out of hierarchical path

Features

  • Gets parameters by path
  • Collects all paged results automatically
  • Lightweight

Installation

Install with pip:

pip install aws-parameter-store

Getting started

Import the module and create a new instance of AwsParameterStore.

from aws_parameter_store import AwsParameterStore

store = AwsParameterStore('us-east-1')

API

overview

By default

  • JSON parameters are being evaluated
  • Parameters are decrypted

Examples

Given the parameters:

Name Value
key-a wrong
example/key-b flat
example/key-c secret
example/path1/path2/key-d deep
ret = store.get_parameters_dict('/example/')
assert ret ==  {
    'key-b': 'flat',
    'key-c': 'secret',
    'path1': { 'path2': { 'key-d': 'deep' } }
}

Requirements

  • Python3.6+

Contributing

You are welcome to contribute and join our family =)

Testing

This projects testing uses pytest. Simply test by running pytest

License

See the LICENSE file for license rights and limitations (Apache License, Version 2.0)

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 aws-parameter-store, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size aws-parameter-store-1.0.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

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