Skip to content

A tool to work with templates to create a configuration file for Google Cloud Engine

License

Notifications You must be signed in to change notification settings

idestis/app_engine_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App Engine Template

This tool allows you to quickly and easily create app.yaml

You configure your App Engine app's settings in the app.yaml file. Sometimes we need to configure sensitive env_variables and they should not be in the same repository as a code base. This tool allows you to grab secrets from Hashicorp Vault

Tool is based on package text/template, based on this you should understand the basics of this package

We support variables, pipelines with if-else and loops with range.

Synopsis

app_engine_template [-source=PATH] [-dest=PATH] [-exta_vars=PATH]

List command flags

-source = PATH

The path of source template from which we need to create

Dependencies

Custom functions

You can easily add your own functions, which should help you with your issues.

Just write function and add mapping into

fmap := template.FuncMap{ "hashiVault": HashiVault, }

HashiVault

You can easily grab any field from Hashicorp Vault

Usage

{{ "secret/customers/databases/example-com.password" | hashiVault }}

Argument is search string and after dot is required field name and function name should be after pipe.

Build

Nothing special to build. Like any tool on Go language

Windows

GOOS=windows GOARCH=386 go build -o app_engine_template.exe
GOOS=windows GOARCH=amd64 go build -o app_engine_template64.exe

Linux

GOOS=linux GOARCH=amd64 go build -o app_engine_template

MacOS X

GOOS=darwin GOARCH=amd64 go build -o app_engine_template

Install

Put the binary to /usr/local/bin on *nix based machines. This will allow you to run it anywhere (based on your $PATH variables)

Plan for future

  • Add auto-scaling parameters
  • We need to add ability to qualify your App Engine configuration
  • Simplify the template. Maybe we will migrate to any other method to work with templates.

About

A tool to work with templates to create a configuration file for Google Cloud Engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages