Scaffolding generator for Terraform
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.
- 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)
npm install -g generator-terraformyo terraform:minimal.
├── README.md
├── main.tf
├── outputs.tf
└── variables.tf
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
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
MIT