boma/terraform/modules/hetzner_vm/versions.tf
sjat 839fc632a1 fix(tf): declare required_providers in modules; pin offsite lock
terraform init failed: child modules using non-hashicorp providers must declare
required_providers, else TF infers hashicorp/{hcloud,proxmox} (nonexistent). Add
versions.tf to hetzner_vm AND proxmox_vm (same latent bug, never caught because
Proxmox TF was never init'd). Track the offsite lock (hcloud 1.65.0). Caught by
running 'make tf-init/plan TF_ENV=offsite' on ubongo — static review missed it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 16:14:05 +02:00

10 lines
325 B
HCL

# Child modules must declare required_providers for non-hashicorp providers, or
# Terraform infers `hashicorp/hcloud` (which does not exist). The root env pins the
# version; the module only maps the local name to the source.
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
}
}
}