UPD: added outputs.tf
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -41,5 +41,7 @@ resource "openstack_compute_instance_v2" "tfvm1" {
|
||||
network {
|
||||
name = "shared"
|
||||
}
|
||||
|
||||
tags = ["created-using-terraform"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user