alicloud_alidns_record

Provides a Alidns Record resource. For information about Alidns Domain Record and how to use it, see What is Resource Alidns Record.

Example Usage

resource "alicloud_alidns_domain_group" "default" {
  domain_group_name = "tf-example"
}
resource "alicloud_alidns_domain" "default" {
  domain_name = "starmove.com"
  group_id    = alicloud_alidns_domain_group.default.id
  tags = {
    Created = "TF",
    For     = "example",
  }
}
resource "alicloud_alidns_record" "record" {
  domain_name = alicloud_alidns_domain.default.domain_name
  rr          = "alimail"
  type        = "CNAME"
  value       = "mail.mxhichin.com"
  remark      = "tf-example"
  status      = "ENABLE"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Alidns Domain Record can be imported using the id, e.g.

$ terraform import alicloud_alidns_record.example abc123456