generator
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