Skip to main content

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.

Source Distribution

aws-parameter-store-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page