senv-template

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2019 License: LGPL-3.0 Imports: 9 Imported by: 0

README

senv-template

To help you to populate your environment variables using AWS SSM Parameter Store.

Installation

Using go

Execute the following command

$ go get -u github.com/luisc09/senv-template
Using bash

Execute the following command to install in Linux

$ curl -L https://github.com/luisc09/senv-template/releases/download/latest/senv-template-linux-amd64 > /usr/local/bin/senv-template && chmod +x /usr/local/bin/senv-template

To install it on MacOS execute the following command

$ curl -L https://github.com/luisc09/senv-template/releases/download/latest/senv-template-darwin-amd64 > /usr/local/bin/senv-template && chmod +x /usr/local/bin/senv-template
Usage
  1. Set your credentials through the AWS CLI.
  2. The element to replace must be the full SSM Parameter Store path surrounded by two brackets.
    db_password={{/dev/db/passowrd}}
    
  3. Execute the following command to create the environment file.
    senv-template --file env.dev.tpl --output .env
    
  4. A new file will be created with all the elements replaced.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL