diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf
index bbc760572c5ba3c472b42b1d86960318d3957cd0..af25b348a70a29e786de5dfbbefa141c51f30e85 100644
--- a/ohpc-instance/main.tf
+++ b/ohpc-instance/main.tf
@@ -72,7 +72,7 @@ resource "openstack_compute_volume_attach_v2" "volume_attach" {
 }
 
 output "xdmod_instance_id" {
-    value = openstack_compute_instance_v2.ohpc.id
+    value = openstack_compute_instance_v2.ohpc[count.index].id
 }
 
 output "ssh_host" {