back
terraform {
required_providers {
exoscale = ">= 0.23.0"
}
}
top
module "exoscale_affinity" {
source = "./modules/exoscale/d/exoscale_affinity"
# name - (optional) is a type of string
name = null
}
top
variable "name" {
description = "(optional) - Name of the Affinity Group"
type = string
default = null
}
top
data "exoscale_affinity" "this" {
# name - (optional) is a type of string
name = var.name
}
top
output "id" {
description = "returns a string"
value = data.exoscale_affinity.this.id
}
output "this" {
value = exoscale_affinity.this
}
top