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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址