This Shell script generates a boilerplate for Terraform files and Git pre-commit hook if git is installed. Please see the Terraform Documentation for more information and look in the scripts freely.
Simply make executable main.sh and execute. Kindly note that the scripts below are deleted after generating boilerplate. How I use it is add the repo to the remote of my new project, pull, then execute main.sh.
# Add git@github.com:whizyrel/terraform-boilerplate.git to remote of my new project
chmod +x main.sh
./main.sh
# REMOVE git@github.com:whizyrel/terraform-boilerplate.git from your remote if you wish
The following scripts are used: