terraform { required_providers { proxmox = { source = "bpg/proxmox" version = "~> 0.83" } } } resource "proxmox_virtual_environment_container" "lgtm" { node_name = var.node_name vm_id = var.lxc_id started = true operating_system { template_file_id = "local:vztmpl/debian-12-standard_12.12-1_amd64.tar.zst" type = "debian" } cpu { cores = 2 } memory { dedicated = 2048 swap = 512 } disk { datastore_id = "local-lvm" size = 10 } network_interface { name = "eth0" bridge = "vmbr0" } initialization { hostname = var.hostname ip_config { ipv4 { address = var.ip_address gateway = var.gateway_ip } } user_account { keys = var.ssh_keys } } }