Every provider documents its settings and resources on the OpenTofu® Registry, at search.opentofu.org (opens in a new tab). This guide finds the docs for one provider, opens a resource’s page, reads its arguments and switches to the docs for an older version.
The example is the hashicorp/local provider, which writes files. The steps are the same for every provider.
Prerequisites
- A web browser. You don’t need an account.
Step 1: Search for the Provider
Open search.opentofu.org (opens in a new tab) and type the provider’s name in the search box, here hashicorp/local. Results appear as you type, grouped into providers, resources, data sources and modules:

Step 2: Open the Provider’s Docs
Click hashicorp/local under Providers. A preview opens on the right. Click View Full Docs:

The provider page shows the menu of its docs on the left, its owner, repository and licence in the middle, and its versions on the right:

Under the versions, Use this provider gives the exact required_providers block to add to your project:

Step 3: Open a Resource’s Page
In the menu on the left, click Resources, then file. The menu lists resources without the provider’s name, so file is the local_file resource:

Step 4: Read the Arguments
Scroll down, or click Schema under On this page. Required lists the arguments you must set, Optional the ones you may set, and Read-Only the values the provider reports back:

Step 5: Read the Docs for Your Version
The docs open at the latest version. If your project uses an older one, open its line under Older versions on the right, here v2.x, and click the version, such as v2.8.0. The page and the Use this provider box switch to that version:

Tip: Your project’s version is in its .terraform.lock.hcl file, on the version line of each provider.
FAQ
Some pages mention Terraform. Do they apply to OpenTofu?
Yes. Many providers were written for Terraform before OpenTofu existed, and their docs still say Terraform. OpenTofu runs the same providers, so the instructions apply to it too.
Do I need an account?
No. The registry is free to search and read.
Conclusion
The OpenTofu Registry has every provider’s docs in one place: search, open the provider, pick a resource, read its Schema, and match the version to your project.
Related
- OpenTofu Tutorial — Part 3: Providers: Run the Website in Docker
- OpenTofu Version Constraints Explained
Additional Resources
- OpenTofu Registry (opens in a new tab)
- Provider Requirements (opens in a new tab)
- local_file resource (opens in a new tab)
OpenTofu® is a registered trademark of LF Projects, LLC. Terraform and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by the OpenTofu project or HashiCorp.
0 comments