Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.03 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.03 KB

ssm-env

Welcome to ssm-env !

This is not an official Reach-Now product.


Substitute SSM parameters in env files.

If you have an env file example.env.tmpl with the following content:

SECRET=ssm:/com/team/svc
STATIC=bar

Running ssm-env -src example.env.tmpl will substitute all entries that begin with the prefix ssm:, resulting in the following output:

SECRET=foo
STATIC=bar

assuming the value of /com/team/svc in AWS Parameter Store is foo.

Installation

Download a binary from the releases page.

Usage

ssm-env
  -region string
        AWS region
        Default: AWS_REGION environment variable 
  -src string
        Source env file path
        Default: SRC_PATH environment variable

Development

brew install dep
dep ensure
go run main.go

Build

GOOS=darwin go build
GOOS=linux go build

Release

This project uses GoReleaser.

export GITHUB_TOKEN=`YOUR_GH_TOKEN`
goreleaser