Skip to content

Latest commit

 

History

History
139 lines (111 loc) · 2.37 KB

alicloud_dns_record.md

File metadata and controls

139 lines (111 loc) · 2.37 KB

alicloud_dns_record

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

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

Variables

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

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

Outputs

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