Skip to main content

Modules

Browse all articles, tutorials, and guides about Modules

9posts

Posts

Terraform
|8 min read

How to Share Providers and Variables Across Terraform Modules

Learn the right way to configure providers and pass variables when working with Terraform modules, avoiding common pitfalls with provider inheritance and variable scoping.

Terraform
|8 min read

How to Organize Terraform Modules for Multiple Environments

Learn effective patterns for structuring Terraform modules to manage dev, staging, and production environments without duplicating code.

Terraform
|7 min read

How to Output a Field From a Terraform Module

Learn how to properly expose resource attributes from Terraform modules using outputs, and how to access nested values from complex data structures.

Terraform
|7 min read

Can a Resource Be Passed as a Variable into a Module?

Learn how to pass resources as variables into modules in Terraform for reusable and modular infrastructure.

Terraform
|7 min read

How to Reference a Resource Created by a Terraform Module

Reference resources created inside a Terraform module from the parent config. Covers defining outputs, accessing module outputs by name, and chaining modules.

Terraform
|8 min read

How to Use Terraform Module Output as Input for Another Module

Learn how to chain Terraform modules together by passing outputs from one module as inputs to another, creating organized and reusable infrastructure configurations.

Terraform
|5 min read

Using a Git Branch as a Source for Terraform Modules

Learn how to use a specific Git branch as the source for Terraform modules to manage versioning and development workflows.

Terraform
|5 min read

Refactoring modules: Error: Provider configuration not present

Learn how to resolve the 'Provider configuration not present' error when refactoring Terraform modules.

Terraform
|6 min read

Modules + Output from for_each

Learn how to use for_each with modules in Terraform to dynamically create resources and manage outputs.