alicloud_dcdn_er

Provides a DCDN Er resource.

For information about DCDN Er and how to use it, see What is Er.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
resource "alicloud_dcdn_er" "default" {
  er_name     = var.name
  description = var.name
  env_conf {
    staging {
      spec_name     = "5ms"
      allowed_hosts = ["example.com"]
    }
    production {
      spec_name     = "5ms"
      allowed_hosts = ["example.com"]
    }
  }
}

Argument Reference

The following arguments are supported:

env_conf

The env_conf supports the following:

env_conf-staging

The staging supports the following:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

DCDN Er can be imported using the id, e.g.

$ terraform import alicloud_dcdn_er.example <id>