back
terraform {
required_providers {
vsphere = ">= 1.25.0"
}
}
top
module "vsphere_folder" {
source = "./modules/vsphere/d/vsphere_folder"
# path - (required) is a type of string
path = null
}
top
variable "path" {
description = "(required) - The absolute path of the folder."
type = string
}
top
data "vsphere_folder" "this" {
# path - (required) is a type of string
path = var.path
}
top
output "id" {
description = "returns a string"
value = data.vsphere_folder.this.id
}
output "this" {
value = vsphere_folder.this
}
top