dynamokv

command module
v0.0.0-...-eb06fd2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT Imports: 1 Imported by: 0

README

dynamokv

Use AWS dynamodb as a simple Key Value storage. Dynamokv is specially designed to store configuration in a dynamodb table and load them as environment variables.

Usage

dynamokv store TABLENAME data.yml

dynamokv fetch TABLENAME

dynamokv set TABLENAME KEY VALUE

dynamokv get TABLENAME KEY

dynamokv template TABLENAME TEMPLATEFILE

Key Value File Format

SIMPLE_KEY: VALUE GOES HERE
SERIALIZED_KEY:
  serialization: 'base64'
  value: |
    SOME LONG STRING
    WITH MULTIPLE LINES
ENCRYPTED_KEY:
  serialization:
    type: kms
    options:
      key: 'alias/key'
  value: YOUR SECRET VALUE
READ_FILE_KEY:
  value:
    file: 'config'

Template File Format

The value for KEY_NAME is {{KEY_NAME}}
The value without deserializing for KEY_NAME is {{RAW:KEY_NAME}}

Supported Serialization types: base64 and kms. For KMS you need to provide key as option.

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