Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryandotsmith/adf-config
Config management for Amazon Docker Workflow
https://github.com/ryandotsmith/adf-config
Last synced: 3 months ago
JSON representation
Config management for Amazon Docker Workflow
- Host: GitHub
- URL: https://github.com/ryandotsmith/adf-config
- Owner: ryandotsmith
- Created: 2013-08-29T07:45:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T21:38:55.000Z (over 10 years ago)
- Last Synced: 2023-04-12T18:26:46.124Z (over 1 year ago)
- Language: Go
- Size: 145 KB
- Stars: 24
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://12factor.net/config) 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:
```json
{
"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
```bash
$ curl -L drone.io/github.com/ryandotsmith/adf-config/files/adf-config.tar.gz \
| tar xvz
```## Usage
```bash
$ 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
```