0.1.5 • Published 3 years ago
generator-terraform v0.1.5
Yeoman Terraform Module Generator
Scaffolding generator for Terraform
Overview
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-terraformUsage
Minimal Structure
yo terraform:minimal.
├── README.md
├── main.tf
├── outputs.tf
└── variables.tfRoot 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.tfComplete 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.tfLicense
MIT