Skip to content

isabella232/ssm-env

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Substitute SSM parameters in env files

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%