UPD: added outputs.tf

This commit is contained in:
xpk
2022-04-22 17:06:39 +08:00
parent 95a62ca1d5
commit 3bd1b44738
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
output vm-id {
value = openstack_compute_instance_v2.tfvm1.id
description = "VM id"
}
output vm-name {
value = openstack_compute_instance_v2.tfvm1.name
description = "VM name"
}
output vm-ip {
value = openstack_compute_instance_v2.tfvm1.access_ip_v4
description = "VM IP"
}
+2
View File
@@ -41,5 +41,7 @@ resource "openstack_compute_instance_v2" "tfvm1" {
network { network {
name = "shared" name = "shared"
} }
tags = ["created-using-terraform"]
} }