alicloud_cdn_domain_new

Provides a CDN Domain resource. CDN domain name.

For information about CDN Domain and how to use it, see What is Domain.

Example Usage

Basic Usage

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_cdn_domain_new" "default" {
  scope       = "overseas"
  domain_name = "mycdndomain-${random_integer.default.result}.alicloud-provider.cn"
  cdn_type    = "web"
  sources {
    type     = "ipaddr"
    content  = "1.1.1.1"
    priority = 20
    port     = 80
    weight   = 15
  }
}

Argument Reference

The following arguments are supported:

certificate_config

The certificate_config supports the following:

If the certificate type is cas, PrivateKey does not need to pass parameters.

sources

The sources support the following:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

CDN Domain can be imported using the id, e.g.

$ terraform import alicloud_cdn_domain.example <id>