Query params from AWS System Manager Parameter Store
Install
pip install aws-paramstore-py
Usage
in shell
# AWS credentials from env vars
aws-pspy /path/to/params
# returns {"key1": "value1", "key2": "value2"}
eval "$(aws-pspy /path/to/params --bash-export)"
# set env vars:
# - key1="value1"
# - key2="value2"
in Python
import aws_paramstore_py as paramstore
# use default boto3 ssm client
params = paramstore.get('/path/to/params')
# dict(key1: "value1", key2: "value2")
# use your own boto3 ssm client
import boto3
ssm = boto3.client('ssm')
params = paramstore.get('/path/to/params', ssm_client=ssm)
Metadata
Release files for aws-paramstore-py 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_paramstore_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / aws_paramstore_py-0.1.0-py3-none-any.whl
| Download URL | aws_paramstore_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fbe49b595dd02c8ecb8a84ae5d1776419f926413c25749cb308b9963cb94049
|
|
BLAKE2b-256 checksum How to use checksums |
1a53deb96a521c7166ad24d1298d796ac82e3a315c197a723d68d58339d22df9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |