Skip to content

🔐 Utility to help us fetching ENV variables from Vault automatically

License

Notifications You must be signed in to change notification settings

kiwicom/vault2env-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Originally located here: https://github.com/kiwicom/vault2env-js

This utility exposes one binary: vault2env. It let's you easily load environment variables from your Vault instance and save them in .env file.

Install

yarn add @kiwicom/vault2env --dev

Usage

Basic usage:

yarn vault2env --token=[vault-token] --addr=[vault-addr] --path=secret/path/to/envs

Vault token and address can be set also as env variables - just like with the vault command:

VAULT_TOKEN=[token] VAULT_ADDR=[addr] vault2env --path=secret/path/to/envs

List of CLI options

Option Default? Required? Description
--token - yes Vault token
--addr - yes Url address to Vault
--path - yes Vault path to desired secrets
--force false no Overwrite .env file if already exists

About

🔐 Utility to help us fetching ENV variables from Vault automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published