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