Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akirakoyasu/aws-paramstore-py
Query params from AWS System Manager Parameter Store for Python
https://github.com/akirakoyasu/aws-paramstore-py
aws-parameter-store pip python3 shellscript
Last synced: 30 days ago
JSON representation
Query params from AWS System Manager Parameter Store for Python
- Host: GitHub
- URL: https://github.com/akirakoyasu/aws-paramstore-py
- Owner: akirakoyasu
- Created: 2018-01-12T13:37:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-17T16:00:15.000Z (over 6 years ago)
- Last Synced: 2024-09-19T08:48:00.013Z (about 2 months ago)
- Topics: aws-parameter-store, pip, python3, shellscript
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-paramstore-py
[![Build Status](https://travis-ci.org/akirakoyasu/aws-paramstore-py.svg?branch=master)](https://travis-ci.org/akirakoyasu/aws-paramstore-py)
Query params from AWS System Manager Parameter Store
## Install
```bash
pip install aws-paramstore-py
```## Usage
in shell
```bash
# 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
```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)
```