Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
/ tfutil Public archive

terraform project structure creator from template

License

Notifications You must be signed in to change notification settings

dmakeienko/tfutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TFUtil

A simple script that will help you create Terraform file structure

Requirments

  • Python 3.6+

Command line options

    -i, --init           -- creates root file structure
    -m, --add-module     -- creates module's directory with files
    -e, --add-env        -- creates directory for environment

Default file structure:

ROOT_FILE_TEMPLATE_LIST:

 main.tf, provider.tf, backend.tf, vars.tf, outputs.tf, README.md

MODULE_FILE_TEMPLATE_LIST:

main.tf, vars.tf, outputs.tf, README.md

MODULES_FOLDER: is modules

ENV_FILE_TEMPLATE_LIST:

main.tf, vars.tf, outputs.tf, README.md

Profiles

You can create different profiles in config file .tfutil_profile.ini and specify that profile in cmd

--profile=my_profile

Installation

  • Download this repo:
    git clone https://github.com/dmakeienko/tfutil.git ~/.tfutil
  • Add ~/.tfutil to your $PATH:
    echo 'export PATH="$HOME/.tfutil:$PATH"' >> ~/.bash_profile

License

See file LICENSE

About

terraform project structure creator from template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages