alicloud_scdn_domain_config

Provides a SCDN Accelerated Domain resource.

For information about domain config and how to use it, see Batch set config

Example Usage

Basic Usage

# Create a new Domain config.
resource "alicloud_scdn_domain" "domain" {
  domain_name = "mydomain.alicloud-provider.cn"
  cdn_type    = "web"
  scope       = "overseas"
  sources {
    content  = "1.1.1.1"
    type     = "ipaddr"
    priority = "20"
    port     = 80
  }
}

resource "alicloud_scdn_domain_config" "config" {
  domain_name   = alicloud_scdn_domain.domain.domain_name
  function_name = "ip_allow_list_set"
  function_args {
    arg_name  = "ip_list"
    arg_value = "110.110.110.110"
  }
}

Argument Reference

The following arguments are supported:

Block function_args

The function_args block supports the following:

Attributes Reference

The following attributes are exported:

Import

SCDN domain config can be imported using the id, e.g.

terraform import alicloud_scdn_domain_config.example <domain_name>:<function_name>:<config_id>