Skip to content

Query params from AWS System Manager Parameter Store for Python

Notifications You must be signed in to change notification settings

akirakoyasu/aws-paramstore-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-paramstore-py

Build Status

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)

About

Query params from AWS System Manager Parameter Store for Python

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published