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

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
filesThe provider binary files.List of labelsrequired
platformPlatform string (e.g., 'linux_amd64', 'darwin_arm64'). If omitted, auto-detected at build time.Stringoptional""
sourceProvider source (e.g., 'hashicorp/null').Stringrequired
versionProvider version (e.g., '3.2.4').Stringrequired