Skip to content

fernandosalomao/generator-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yeoman Terraform Module Generator

Scaffolding generator for Terraform

Overview

This repository will be archived in Jan or Feb 2026.

Please migrate to the new repository: TBD

Test Another Co-Commit....

This Yeoman plugin intends to create terraform module folder structure based on terraform official documentation and industry best practices.

Files are added with examples and comments describing the usage.

Features

  • Generates minimal folder structure. (e.g child modules)
  • Generates root folder structure (e.g project structure)
  • Generates complete module structure for publish. (e.g including LICENSE)

Prerequisites

Installation

npm install -g generator-terraform

Usage

Minimal Structure

yo terraform:minimal
.
├── README.md
├── main.tf
├── outputs.tf
└── variables.tf

Root Structure

yo terraform:root
.
├── modules
│   └── .gitkeep
├── .editorconfig
├── .gitattributesfile
├── .gitignore
├── .pre-commit-config.yaml
├── .terraform-docs.yaml
├── .terraformignore
├── .tflint.hcl
├── README.md
├── data.tf
├── locals.tf
├── main.tf
├── outputs.tf
├── providers.tf
├── terraform.tf
├── terraform.tfvars
└── variables.tf

Complete Structure

yo terraform
.
├── examples
│   └── simple
│       └── main.tf
├── modules
│   └── .gitkeep
├── .editorconfig
├── .gitattributesfile
├── .gitignore
├── .pre-commit-config.yaml
├── .terraform-docs.yaml
├── .terraformignore
├── .tflint.hcl
├── LICENSE
├── README.md
├── data.tf
├── locals.tf
├── main.tf
├── outputs.tf
├── variables.tf
└── versions.tf

License

MIT

Contributors 2

  •  
  •