terraform { required_providers { proxmox = { source = "bpg/proxmox" version = "0.86.0" } } } data "http" "schematic" { url = "https://factory.talos.dev/schematics" method = "POST" request_body = file("${path.module}/schematic.yaml") request_headers = { "Content-Type" = "application/x-yaml" } } locals { schematic_id = jsondecode(data.http.schematic.response_body)["id"] iso_url = "${"https://factory.talos.dev/image"}/${local.schematic_id}/v${var.talos_version}/nocloud-amd64-secureboot.raw.xz" iso_file = "talos-${var.talos_version}-nocloud-amd64-secureboot.raw" } resource "null_resource" "local_download_talos_image" { provisioner "local-exec" { command = <