back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_dns_record" {
source = "./modules/alicloud/r/alicloud_dns_record"
# host_record - (required) is a type of string
host_record = null
# name - (required) is a type of string
name = null
# priority - (optional) is a type of number
priority = null
# routing - (optional) is a type of string
routing = null
# ttl - (optional) is a type of number
ttl = null
# type - (required) is a type of string
type = null
# value - (required) is a type of string
value = null
}
top
variable "host_record" {
description = "(required)"
type = string
}
variable "name" {
description = "(required)"
type = string
}
variable "priority" {
description = "(optional)"
type = number
default = null
}
variable "routing" {
description = "(optional)"
type = string
default = null
}
variable "ttl" {
description = "(optional)"
type = number
default = null
}
variable "type" {
description = "(required)"
type = string
}
variable "value" {
description = "(required)"
type = string
}
top
resource "alicloud_dns_record" "this" {
# host_record - (required) is a type of string
host_record = var.host_record
# name - (required) is a type of string
name = var.name
# priority - (optional) is a type of number
priority = var.priority
# routing - (optional) is a type of string
routing = var.routing
# ttl - (optional) is a type of number
ttl = var.ttl
# type - (required) is a type of string
type = var.type
# value - (required) is a type of string
value = var.value
}
top
output "id" {
description = "returns a string"
value = alicloud_dns_record.this.id
}
output "locked" {
description = "returns a bool"
value = alicloud_dns_record.this.locked
}
output "status" {
description = "returns a string"
value = alicloud_dns_record.this.status
}
output "this" {
value = alicloud_dns_record.this
}
top