gcpsecretmanager2env

command module
v0.0.0-...-09eb4b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 12 Imported by: 0

README

gcpsecretmanager2env

A cli tool that parses env file, fetch secrets from gcp secret manager, and substitutes them.

Example

./.env

AN_ENV_FROM_SECRET_MANAGER=projects/<PROJECT_ID>/secrets/<ENV_NAME>/versions/1

command

gcpsecretmanager2env -output ./.output.env ./.env

./.output.env

AN_ENV_FROM_SECRET_MANAGER='<VALUE_FROM_SECRET_MANAGEr>'

Usage

Usage: gcpsecretmanager2env [OPTIONS] <input-file>
Note: <input-file> is a required positional argument.
  -credential string
        gcp credential file. it will see GOOGLE_APPLICATION_CREDENTIALS when it's not set
  -help
        show help
  -output string
        output file
  -remove-whitespace
        remove whitespaces {\n,\t}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL