Brains4Cloud
ESEN

Terraform

Terraform Module

A reusable set of Terraform resources grouped in a directory. The root module is the main working directory. Child modules are called from the root and can come from local sources, the Terraform Registry, or Git repositories.

On the exam

In Terraform Associate, modules are the way to reuse code. Input variables (variables.tf) and outputs (outputs.tf) define the module's interface. Question: how do you reuse the same VPC configuration across multiple environments? With a module.

Related terms

More Terraform terms

See the whole glossary →