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
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| files | The provider binary and any files shipped with it. | List of labels | required | |
| platform | The platform, as linux_amd64. Leave it empty for a provider built here: it is taken from the configuration the provider is built in. | String | optional | "" |
| source | The provider address as required_providers writes it, e.g. hashicorp/null. | String | required | |
| version | The provider version, e.g. 3.2.4. | String | required |