alicloud_dcdn_domain

You can use DCDN to improve the overall performance of your website and accelerate content delivery to improve user experience. For information about Alicloud DCDN Domain and how to use it, see What is Resource Alicloud DCDN Domain.

Example Usage

Basic Usage

variable "domain_name" {
  default = "tf-example.com"
}
resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_dcdn_domain" "example" {
  domain_name = "${var.domain_name}-${random_integer.default.result}"
  scope       = "overseas"
  sources {
    content  = "1.1.1.1"
    port     = "80"
    priority = "20"
    type     = "ipaddr"
    weight   = "10"
  }
}

Argument Reference

The following arguments are supported:

sources

The sources supports the following:

Attributes Reference

Timeouts

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

Import

DCDN Domain can be imported using the id or DCDN Domain name, e.g.

$ terraform import alicloud_dcdn_domain.example <id>