# Dynamic outputs for all deployed VMs output "vm_ips" { description = "IP addresses and SSH commands for deployed VMs" value = { for name, vm in proxmox_vm_qemu.vm : name => { ip = vm.default_ipv4_address ssh_command = "ssh root@${vm.default_ipv4_address}" } } } output "deployment_summary" { description = "Summary of deployed VMs with their specifications" value = { for name, vm in proxmox_vm_qemu.vm : name => { cpu_cores = vm.cpu[0].cores memory_mb = vm.memory disk_size = vm.disks[0].virtio[0].virtio0[0].disk[0].size ip = vm.default_ipv4_address node = vm.target_node } } }