Terraform antipattern: Resource Modules
by Pedro Santos
March 12, 2026
Say you’re working for a medium to large company that is using infrastructure-as-code (IaC) to manage their infrastructure. Seeing so many different ways of deploying the same resources with conflicting levels of compliance, you come up with a solution. You’d like to create a unified approach to deploy IaC resources by creating resource modules. Resource modules are thin wrappers around the resource following your organization’s best practices. This keeps everyone’s configuration DRY and consistent across your organization.