Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.58 KB

README.template.md

File metadata and controls

61 lines (41 loc) · 1.58 KB

${APP}

Docker Cloud Build Status

Writes AWS Secrets Manager secrets to files on disk. (If you need secrets as environment variables instead, you can use aws-secretsmanager-env)

Get it

Using go get:

go get -u github.com/keilerkonzept/${APP}

Or download the binary from the releases page.

# Linux
curl -L https://github.com/keilerkonzept/${APP}/releases/download/${VERSION}/${APP}_${VERSION}_linux_x86_64.tar.gz | tar xz

# OS X
curl -L https://github.com/keilerkonzept/${APP}/releases/download/${VERSION}/${APP}_${VERSION}_osx_x86_64.tar.gz | tar xz

# Windows
curl -LO https://github.com/keilerkonzept/${APP}/releases/download/${VERSION}/${APP}_${VERSION}_windows_x86_64.zip
unzip ${APP}_${VERSION}_windows_x86_64.zip

Use it


${APP} [OPTIONS]

${USAGE}

Examples

$ ${APP} -secret ./secret.json=arn:aws:secretsmanager:eu-west-1:28381901202:secret:example-secret-1
$ cat ./secret.json
{"hello":"world"}

$ ${APP} -secret-json-key ./secret.json=arn:aws:secretsmanager:eu-west-1:28381901202:secret:example-secret-1#hello
$ cat ./secret.json
"world"

$ ${APP} secret-json-key-string ./secret.json=arn:aws:secretsmanager:eu-west-1:28381901202:secret:example-secret-1#hello
$ cat ./secret.json
world