Skip to content

Instantly share code, notes, and snippets.

View mtougeron's full-sized avatar

Mike Tougeron mtougeron

View GitHub Profile
@issacg
issacg / vlt-aws2consul.js
Last active February 25, 2016 21:48
Script to replicate vault storage from S3 to consul. Expects consul-agent on localhost:8500 and for AWS credentials to be set via environment/credential file/EC2 role
var _ = require('lodash'),
Promise = require('bluebird'),
consul = require('consul'),
logger = require('log4js').getDefaultLogger(),
AWS = require('aws-sdk');
var bucket = 'my.vault.main',
prefix = '',
region = 'us-west-2',