Modules

Terraform modules are reusable configurations that can be called from other Terraform configurations.

Modules Overview

Using Terraform modules can help promote code reuse, reduce duplication of effort, and improve maintainability of infrastructure code.

How Modules Work

Creating a Terraform module involves defining input variables, output values, and one or more resource definitions that can be reused in other Terraform configurations.

Module Inputs

Terraform module inputs are variables that allow users to customize and parameterize the behavior of a module.

Module Locals

Terraform module locals are variables that are used to simplify expressions or avoid repeating values within a module

Module Outputs

Terraform module outputs are values that a module can return to the calling code to expose information about the resources it created or modified.

Module Paths

Terraform module paths refer to the hierarchical structure used to organize and reference resources within a Terraform configuration, facilitating resource management and interdependencies in infrastructure as code deployments.

Module Versioning

Terraform module versioning is a mechanism for managing changes and ensuring consistency of infrastructure deployments by assigning unique version numbers to modules.

Last modified July 21, 2024: update (e2ae86c)