From 98996fc24df2a0fcb8546b13fb8ad979a6966b74 Mon Sep 17 00:00:00 2001
From: Bo-Chun Louis Chen <louistw@uab.edu>
Date: Wed, 28 Aug 2019 13:03:15 -0500
Subject: [PATCH] Export ohpc instance id

Accessible by calling module.create-ohpc-instance.id
 will return a string
---
 ohpc-instance/main.tf | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf
index 927a5e4..746a7e5 100644
--- a/ohpc-instance/main.tf
+++ b/ohpc-instance/main.tf
@@ -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
+}
-- 
GitLab