generator

command
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

README

generator

Generation TerraHub Templates from Terraform-providers

Generate the bin file:

$ cd $GOPATH/src/generator
$ make linux | darwin | windows | all

Generate the terrahub templates

$ cd $GOPATH/src/generator/../[YOUR OS ARCHITECTURE]/
$ generator [provider_name] [path_to_output_templates]

Compress terraform configurations into terrahub config

$ cd $GOPATH/src/generator/../[YOUR OS ARCHITECTURE]/
$ generator -toyml [-recursive] [path_to_input_hcl] [path_to_output_config]

Compress terraform configurations into terrahub config Scanning all children directories

$ cd $GOPATH/src/generator/../[YOUR OS ARCHITECTURE]/
$ generator -thub [-recursive] [path_to_input_hcl_parent_folder] [path_to_output_config_parent_folder] [environment] 

Install Linux

Here's how it could look for 64 bits Linux, if you wanted generator available globally:

cd $GOPATH/src/generator/../linux_amd64/ && \
sudo cp generator /usr/local/bin && \
sudo chmod 755 /usr/local/bin/generator && generator -version

Install OSX

Here's how it could look for 64 bits Darwin, if you wanted generator available globally:

cd $GOPATH/src/generator/../darwin_amd64/ && \
sudo cp generator /usr/local/bin && \
sudo chmod 755 /usr/local/bin/generator && generator -version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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