0Pricing
Terraform Infrastructure as Code · Lesson

Publishing Modules to a Registry

Share reusable Terraform modules across teams by versioning them in Git and publishing to the public or a private module registry.

Beyond Local Modules

Local modules live in a folder next to your config. To share modules across projects and teams you publish them to a module registry so consumers can pull them by name and version, just like a package manager.

Module Sources

The source argument decides where Terraform fetches a module from. Options include:

  • A local path
  • A Git repository
  • The Terraform public registry
  • A private registry in Terraform Cloud

All lessons in this course

  1. Introduction to Terraform Modules
  2. Creating Reusable Modules
  3. Using Workspaces for Environments
  4. Publishing Modules to a Registry
← Back to Terraform Infrastructure as Code