Skip to content

Cookiecutter template for creating Terraform modules. Modules are intended to be reused by one or many workspaces.

License

Notifications You must be signed in to change notification settings

aidanmelen/cookiecutter-tf-module

Repository files navigation

pre-commit

cookiecutter-tf-module

cookiecutter + terraform

Cookiecutter template for creating Terraform modules. Modules are intended to be reused by one or many workspaces. This template is heavily influenced by the Hashicorp's minimal-module structure and the DevOps patterns used in the popular terraform-aws-eks community module.

Also checkout cookiecutter-tf-workspace.

Other documentation

Quickstart

$ pip install cookiecutter
$ cookiecutter git@github.com:aidanmelen/cookiecutter-tf-module.git
$ cd [MODULE_NAME]
$ make

You will be prompted for basic info (your name, module name, etc.) which will be used in the template.

This will create the following:

terraform-module-example
├── Makefile
├── README.md
├── docs
│   └── developer-notes.md
├── examples
│   ├── complete
│   │   ├── backend.tf
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   └── basic
│       ├── backend.tf
│       ├── main.tf
│       ├── outputs.tf
│       └── variables.tf
├── main.tf
├── outputs.tf
├── tests
├── variables.tf
└── versions.tf

That's all you need to get started.

License

MIT Licensed. See LICENSE for full details.

Credits

About

Cookiecutter template for creating Terraform modules. Modules are intended to be reused by one or many workspaces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published