Skip to content

catalog

unit

Usage

The catalog block configures IaC catalogs for the catalog and scaffold commands. It defines where Terragrunt looks for reusable patterns like OpenTofu/Terraform modules and Boilerplate templates, and how scaffolding behaves.

For more details, see the Catalog feature documentation.

Attributes

urlslist(string)

URLs of module catalogs. Each is a local path or a remote URL, e.g. a GitHub repository. Relative paths resolve against the configuration file.

root.hcl
catalog {
urls = [
"/Users/acme/modules",
"github.com/acme/infrastructure-modules",
]
}
default_templateoptional(string)

Path to the Boilerplate template to scaffold with when a module has no .boilerplate directory of its own.

root.hcl
catalog {
urls = ["github.com/acme/infrastructure-modules"]
default_template = "/Users/acme/templates/default"
}
no_shelloptional(bool, false)

Disables shell commands in Boilerplate templates during scaffolding. The --no-shell flag overrides it.

root.hcl
catalog {
urls = ["github.com/acme/infrastructure-modules"]
no_shell = true
}
no_hooksoptional(bool, false)

Disables hooks in Boilerplate templates during scaffolding. The --no-hooks flag overrides it.

root.hcl
catalog {
urls = ["github.com/acme/infrastructure-modules"]
no_hooks = true
}