OpenTofu Rules

Everything under //opentofu mirrors //terraform but binds to //opentofu:toolchain_type. Rule bodies are identical — only the resolved toolchain differs — so behavior stays in lockstep between the two engines. Data-only rules (opentofu_module, opentofu_provider, opentofu_provider_group) are literal aliases for their terraform_* counterparts, provided so an OpenTofu-only project never has to import a terraform_* symbol.

Public rules

Module extensions