Skip to content

Config management for Amazon Docker Workflow

Notifications You must be signed in to change notification settings

bnoguchi/adf-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

AWS Docker Config

This tool is designed to deliver an app's configuration from a central config database into the process environment for an app. This tool enables Twelve-Factor style configuration for apps running on EC2.

Install

Setup steps:

  • Create DynamoDB table
  • Creating IAM Role with access to the DynamoDB table
  • Downloading ADF-CONFIG onto the EC2 instance

Database Setup

Create a table named adf-config with a hash key of App and a range key of Value.

IAM Role

Create an IAM role with the following policy:

{
  "Version": "timestamp",
  "Statement": [
    {
      "Action": [
        "dynamodb:Scan"
        "dynamodb:PutItem",
        "dynamodb:DeleteItem"
      ],
      "Sid": "Stmt:timestamp:0",
      "Resource": [
        "*"
      ],
      "Effect": "Allow"
    }
  ]
}

Then be sure to boot your EC2 instances with a role that has this policy.

Client Installation

$ curl -L drone.io/github.com/ryandotsmith/adf-config/files/adf-config.tar.gz \
  | tar xvz

Usage

$ adf-config -l -a x
FOO=f
BAR=b

#TODO
$ adf-config -s BAZ=b -a x
BAZ=b

#TODO
$ adf-config -d BAZ -a x
BAZ=b

About

Config management for Amazon Docker Workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published