tofu_provider — alias for terraform_provider.

Same rule under both names: a checked-in provider binary declaration is engine-neutral, so tofu_provider is just a naming alias so OpenTofu-only projects don't have to import a terraform_* symbol.

Rules

tofu_provider

load("@rules_terraform//tofu:tofu_provider.bzl", "tofu_provider")

tofu_provider(name, files, platform, source, version)

A provider built in this repository, for a terraform_module's deps. Registry providers come from a deps tag's hub instead.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
filesThe provider binary and any files shipped with it.List of labelsrequired
platformThe platform, as linux_amd64. Leave it empty for a provider built here: it is taken from the configuration the provider is built in.Stringoptional""
sourceThe provider address as required_providers writes it, e.g. hashicorp/null.Stringrequired
versionThe provider version, e.g. 3.2.4.Stringrequired