Skip to content
Snippets Groups Projects
Commit 98996fc2 authored by Bo-Chun Chen's avatar Bo-Chun Chen Committed by John-Paul Robinson
Browse files

Export ohpc instance id

Accessible by calling module.create-ohpc-instance.id
 will return a string
parent a022c869
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,10 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
}
}
output "id" {
value = openstack_compute_instance_v2.ohpc.id
}
output "ssh_host" {
value = format(var.host_prefix,element(split(".", var.floating_ip_ohpc),3,),)
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment