Installation
The provider is virtscale/virtscale. Write its full address, registry.terraform.io/virtscale/virtscale,
as the source. That works in both Terraform and OpenTofu.
OpenTofu reads a short address such as virtscale/virtscale from registry.opentofu.org, and that registry
does not list the provider yet: init stops with a 404, “does not have a provider named”. The full address
names the registry, so OpenTofu fetches the provider from registry.terraform.io. Terraform CLI users may
shorten it to virtscale/virtscale.
Declare the provider
Section titled “Declare the provider”terraform {
required_providers {
virtscale = {
source = "registry.terraform.io/virtscale/virtscale"
version = "~> 0.2"
}
}
}
provider "virtscale" {}
The provider block stays empty on purpose. The credentials come from the environment; see
Authentication.
Run init
Section titled “Run init”The commands on these pages use tofu. With Terraform, use terraform instead.
tofu init
init downloads the provider and checks the release’s checksums and its GPG signature against the key the
registry holds. It writes .terraform.lock.hcl; commit that file, so every machine and every pipeline
runs the same provider build.
Versions
Section titled “Versions”~> 0.2 accepts v0.2.0 and any later 0.x release, and refuses 1.0. Before 1.0, treat a new minor version as
one that may change what the provider does: read the release notes on the registry page, then move with
tofu init -upgrade. To stay on one patch line, use ~> 0.2.0.
| Tool | Status |
|---|---|
| OpenTofu | Built and tested with 1.12.5 |
| Terraform | Speaks the same plugin protocol (6) as 1.x, but is not tested |
OpenTofu’s own state encryption needs 1.7 or newer. See Object storage for why that matters.
Registry documentation
Section titled “Registry documentation”- Terraform registry
- OpenTofu registry, once the provider is listed there