Module Registry
With Harness module registry, you can speed up and simplify your infrastructure management by reusing pre-built modules. This helps you avoid reinventing the wheel every time you need to set up common components, such as virtual machines, databases, or networks.
Prerequisites
Before you begin configuring module registry, ensure that you have:
- Access to your OpenTofu or Terraform environment via Harness connectors.
If you are using Harness to connect to your code repository, you can continue without further action.
However, if you are connecting via a delegate, ensure the delegate version is 24.10.84200
or later
Register a module
Follow the steps in the guide below to register a new module.
- Interactive guide
- Step-by-step
- Login to Harness.
- Select Account settings, then select IaCM Module Registry from the Account-level resources section.
- Click on New Module and fill in or select the following fields:
- Name
- Provider
- Git Provider option
- Repository connector
- Git Fetch type
- Branch/tag
- Click on Save
Your repository connector will pull the module details to store your new module.
Once saved, the module will now appear in the Module Registry, ready for use in projects.
Review module settings
Harness pulls various details from your module and makes it easy to review them.
The Sync button checks your registered module in Harness against the latest release in your repository and configured connector branch. If a newer version exists, it will sync it.