shipinit

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 4 Imported by: 0

README

shipinit

A secret management tool for container, builds on EC2 SSM Parameter Store.

Installation

Go to release page.

Usage

The envload command is a exporting env vars from SSM Parameter Store.

$ shipinit envload [flags]

Flags:
      --env string            Environment Name (default "prd")
      --service-name string   Service Name

Example:
      $ shipinit envload --env prd --service-name foo
      > export FOO=bar
      > export BAR=baz
Setting env vars

env = "prd"
name = "foo"

# set a KMS ARN
key_id = "arn:aws:kms:<REGION>:<ACCOUNT_ID>:key/<ID>"

map = {
  FOO: "bar",
  BAR: "baz",
}


def command(env, name, key_id, k, v)
  "aws ssm put-parameter --name #{env}.#{name}.#{k} --value \"#{v}\" --type SecureString --key-id #{key_id}"
end

map.each do |k,v|
  system(command(env, name, key_id, k, v))
end

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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