terraform.json

Demo · format-valid IANA · provisional

/.well-known/terraform.json

Standard: HashiCorp Terraform Remote Service Discovery

Terraform registry discovery: the file that tells Terraform where your registries live.

What it is

Terraform resolves a registry hostname by fetching /.well-known/terraform.json, which maps service types (modules.v1, providers.v1, and custom services) to their base URLs. It's how custom Terraform registries plug into the ecosystem.

The threat it addresses

Terraform needs a standard way to discover registry endpoints without config sprawl. The well-known file lets any host advertise its registry services.

How it works

  • Terraform GETs https://<host>/.well-known/terraform.json.
  • The response maps service versions to URL bases, e.g. {"service-discovery.v1": {"services": {"providers.v1": [...]}}}.

Honesty notes

  • Demo: illustrative service map — no Terraform services are actually offered.

Try it

Live demo

Format-valid demo service discovery

Content-Type: application/json; charset=utf-8
{
  "service-discovery.v1": {
    "services": {
      "well-known.v1": [
        "https://well-known.page/demo/terraform/well-known"
      ]
    }
  },
  "_demo_note": "Illustrative HashiCorp Terraform remote service discovery for well-known.page. No Terraform services are actually offered."
}