back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_edas_clusters" {
source = "./modules/alicloud/d/alicloud_edas_clusters"
# ids - (optional) is a type of list of string
ids = []
# logical_region_id - (required) is a type of string
logical_region_id = null
# name_regex - (optional) is a type of string
name_regex = null
# output_file - (optional) is a type of string
output_file = null
}
top
variable "ids" {
description = "(optional)"
type = list(string)
default = null
}
variable "logical_region_id" {
description = "(required)"
type = string
}
variable "name_regex" {
description = "(optional)"
type = string
default = null
}
variable "output_file" {
description = "(optional)"
type = string
default = null
}
top
data "alicloud_edas_clusters" "this" {
# ids - (optional) is a type of list of string
ids = var.ids
# logical_region_id - (required) is a type of string
logical_region_id = var.logical_region_id
# name_regex - (optional) is a type of string
name_regex = var.name_regex
# output_file - (optional) is a type of string
output_file = var.output_file
}
top
output "clusters" {
description = "returns a list of object"
value = data.alicloud_edas_clusters.this.clusters
}
output "id" {
description = "returns a string"
value = data.alicloud_edas_clusters.this.id
}
output "ids" {
description = "returns a list of string"
value = data.alicloud_edas_clusters.this.ids
}
output "names" {
description = "returns a list of string"
value = data.alicloud_edas_clusters.this.names
}
output "this" {
value = alicloud_edas_clusters.this
}
top