GithubHelp home page GithubHelp logo

isabella232 / ssm_fetcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from katapultcloud/ssm_fetcher

0.0 0.0 0.0 9 KB

Fetch AWS ssm secrets from command line

License: MIT License

Python 100.00%

ssm_fetcher's Introduction

Usage

Requirements

python3
boto3

Installation

Add line to ~/.bashrc or ~/.bash_profile etc.

alias f-ssm='<path>/ssm_fetcher.py'

Help

$ f-ssm --help
usage: ssm_fetcher.py [-h] [--json] [--profile PROFILE] [--region REGION]
                      ssm_params [ssm_params ...]

SSM Parameter Fetcher

positional arguments:
  ssm_params            list of ssm parameters

optional arguments:
  -h, --help            show this help message and exit
  --json, -j            enables json output
  --profile PROFILE, -p PROFILE
                        aws profile to use, default "default"
  --region REGION, -r REGION
                        aws region to use, default "us-east-1"

Examples

Fetching one parameter

$ f-ssm secret-url
secret-url:
secret.example.com

Fetching one parameter with json format

$ f-ssm secret-url --json
{"secret-url": "secret.example.com"}

Fetching one parameter with different aws profile

$ f-ssm secret-url -p boto_profile
secret-url:
secret.example.com

Fetching one parameter with non-default aws profile from non-default aws region

$ f-ssm secret-url -p boto_profile -r us-west-1
secret-url:
secret.example.com

Fetching multiple parameters

$ f-ssm private-key.pem i-dont-exist website-password
private-key.pem:
<private_key>

i-dont-exist:

website-password:
Password1234!

ssm_fetcher's People

Contributors

katapultcloud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.