opentofu_provider — alias for terraform_provider.
Same rule under both names: a checked-in provider binary declaration is
engine-neutral, so opentofu_provider is just a naming alias so
OpenTofu-only projects don't have to import a terraform_* symbol.
Rules
opentofu_provider
load("@rules_terraform//opentofu:opentofu_provider.bzl", "opentofu_provider")
opentofu_provider(name, files, platform, source, version)
Defines a Terraform provider that can be used as a dependency in terraform_module targets.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| files | The provider binary files. | List of labels | required | |
| platform | Platform string (e.g., 'linux_amd64', 'darwin_arm64'). If omitted, auto-detected at build time. | String | optional | "" |
| source | Provider source (e.g., 'hashicorp/null'). | String | required | |
| version | Provider version (e.g., '3.2.4'). | String | required |