back
terraform {
required_providers {
vsphere = ">= 1.25.0"
}
}
top
module "vsphere_license" {
source = "./modules/vsphere/r/vsphere_license"
# labels - (optional) is a type of map of string
labels = {}
# license_key - (required) is a type of string
license_key = null
}
top
variable "labels" {
description = "(optional)"
type = map(string)
default = null
}
variable "license_key" {
description = "(required)"
type = string
}
top
resource "vsphere_license" "this" {
# labels - (optional) is a type of map of string
labels = var.labels
# license_key - (required) is a type of string
license_key = var.license_key
}
top
output "edition_key" {
description = "returns a string"
value = vsphere_license.this.edition_key
}
output "id" {
description = "returns a string"
value = vsphere_license.this.id
}
output "name" {
description = "returns a string"
value = vsphere_license.this.name
}
output "total" {
description = "returns a number"
value = vsphere_license.this.total
}
output "used" {
description = "returns a number"
value = vsphere_license.this.used
}
output "this" {
value = vsphere_license.this
}
top