Skip to content

Latest commit

 

History

History
83 lines (60 loc) · 1.56 KB

README.md

File metadata and controls

83 lines (60 loc) · 1.56 KB

Vampire

Upload secrets/parameters from various sources to various destinations.

Overview

This tool is in very early stage, I'm planning to support more sources/destinations in the future. Use at your own risk.

Supported Integrations

Sources

  • .env files

Destinations

  • AWS SSM Parameter Store

Getting Started

Installation

git clone [email protected]:refl3ction/vampire.git
cd vampire
make install # Requires rust toolchain to be installed for now

Usage

Before running the tool, make sure to export your AWS profile.

export AWS_PROFILE=my-profile

Basic

Usage: vampire [OPTIONS] --file <FILE> --region <REGION>

Options:
  -f, --file <FILE>
  -p, --prefix <PREFIX>  [default: ]
  -r, --region <REGION>
  -o, --overwrite
  -h, --help             Print help information
  -V, --version          Print version information

.env to SSM

cat .env
FOO=bar
BAR=baz
BAZ=foobar

vampire --file .env --prefix /dev/app/ --region us-east-1 --overwrite

# output
File: .env
Prefix: /dev/app/
Region: us-east-1
Overwrite: true
The following variables will be created:
/dev/app/FOO=***
/dev/app/BAR=***
/dev/app/BAZ=***
Would you like to proceed? (n/y)
y
[ok] parameter updated | Name: /dev/app/FOO | version: 5
[ok] parameter updated | Name: /dev/app/BAR | version: 5
[ok] parameter created | Name: /dev/app/BAZ | version: 1

Roadmap

  • Add tests
  • Build binary using Github Actions
  • Add more sources
    • k8s secrets (yaml manifest)
    • Yaml
  • Add more destinations
    • AWS Secrets Manager