terraform {
required_providers {
ecl = ">= 2.0.0"
}
}
module "ecl_baremetal_availability_zone_v2" {
source = "./modules/ecl/d/ecl_baremetal_availability_zone_v2"
# zone_name - (optional) is a type of string
zone_name = null
}
variable "zone_name" {
description = "(optional)"
type = string
default = null
}
data "ecl_baremetal_availability_zone_v2" "this" {
# zone_name - (optional) is a type of string
zone_name = var.zone_name
}
output "id" {
description = "returns a string"
value = data.ecl_baremetal_availability_zone_v2.this.id
}
output "zone_name" {
description = "returns a string"
value = data.ecl_baremetal_availability_zone_v2.this.zone_name
}
output "this" {
value = ecl_baremetal_availability_zone_v2.this
}