Packer debian bullseye image for proxmox

I am trying to create a Proxmox template image with Packer and hcl2. Whenever I run the script I can see the image start to be created in proxmox but it fails while trying to access the host name inside the build command.

Error

proxmox.debian-bullseye-template: Error preparing boot command: template: root:1:258: executing “root” at <.Name>: can’t evaluate field Name in type *proxmox.bootCommandTemplateData

HCL2 Script

source "proxmox" "debian-bullseye-template" {
  vm_name                  = "Test"
  proxmox_url              = "${var.proxmox_url}"
  username                 = "${var.username}"
  password                 = "${var.password}"
  node                     = "${var.node}"
  communicator             = "ssh"
  ssh_username             = "${var.ssh_username}"
  ssh_password             = "${var.ssh_password}"
  ssh_wait_timeout         = "60m"
  iso_file                 = "${var.iso_file}"
  iso_checksum             = "${var.iso_checksum}"
  iso_storage_pool         = "${var.iso_storage_pool}"
  insecure_skip_tls_verify = "${var.insecure_skip_tls_verify}"
  memory                   = "${var.memory}"
  cores                    = "${var.cores}"
  sockets                  = "${var.sockets}"
  cpu_type                 = "${var.cpu_type}"
  http_directory           = "${local.http_directory}"

  vga {
    type   = "virtio"
    memory = 32
  }

  network_adapters {
    model    = "virtio"
    bridge   = "vmbr0"
    firewall = true
  }

  boot_command = [
    "<esc><wait>",
    "install <wait>",
    " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
    "debian-installer=en_US.UTF-8 <wait>",
    "auto <wait>",
    "locale=en_US.UTF-8 <wait>",
    "kbd-chooser/method=us <wait>",
    "keyboard-configuration/xkb-keymap=us <wait>",
    "netcfg/get_hostname={{ .Name }} <wait>",
    "netcfg/get_domain=vagrantup.com <wait>",
    "fb=false <wait>",
    "debconf/frontend=noninteractive <wait>",
    "console-setup/ask_detect=false <wait>",
    "console-keymaps-at/keymap=us <wait>",
    "grub-installer/bootdev=/dev/sda <wait>",
    "<enter><wait>"
  ]

  boot_wait = "10s"
}

build {
  sources = ["source.proxmox.debian-bullseye-template"]
}

Is there a step I am missing to make this run. I even specifically set the name vm_name = "Test" in the source block.