# Provider terraform { required_providers { proxmox = { source = "bpg/proxmox" version = "~> 0.83" } } } provider "proxmox" { endpoint = var.proxmox_endpoint api_token = var.proxmox_api_token insecure = true } # LXC Container resource "proxmox_virtual_environment_container" "lxc01" { vm_id = var.lxc_id node_name = var.node_name started = true operating_system { template_file_id = "local:vztmpl/debian-12-standard_12.12-1_amd64.tar.zst" } cpu { cores = var.lxc_cores } memory { dedicated = var.lxc_memory swap = 512 } disk { datastore_id = "local-lvm" size = 8 } network_interface { name = "eth0" bridge = "vmbr0" } initialization { hostname = var.lxc_name user_account { password = "Password123!" } } }