alicloud_dcdn_er
Provides a DCDN Er resource.
For information about DCDN Er and how to use it, see What is Er.
-> NOTE: Available since v1.201.0.
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"]
}
}
}
Need more examples? VIEW MORE EXAMPLES
Argument Reference
The following arguments are supported:
er_name- (Required, ForceNew) The name of the routine. The name must be unique among the routines that belong to the same Alibaba Cloud account.description- (Optional) Routine The description of the routine.env_conf- (Optional) The configurations of the specified environment. Seeenv_confbelow.
env_conf
The env_conf supports the following:
staging- (Optional) The configuration of a staging environment. Seestagingbelow.production- (Optional) The configuration of a production environment. Seeproductionbelow.preset_canary_anhui- (Optional) The configuration of a presetCanaryAnhui environment. Seepreset_canary_anhuibelow.preset_canary_beijing- (Optional) The configuration of a presetCanaryBeijing environment. Seepreset_canary_beijingbelow.preset_canary_chongqing- (Optional) The configuration of a presetCanaryChongqing environment. Seepreset_canary_chongqingbelow.preset_canary_fujian- (Optional) The configuration of a presetCanaryFujian environment. Seepreset_canary_fujianbelow.preset_canary_gansu- (Optional) The configuration of a presetCanaryGansu environment. Seepreset_canary_gansubelow.preset_canary_guangdong- (Optional) The configuration of a presetCanaryGuangdong environment. Seepreset_canary_guangdongbelow.preset_canary_guangxi- (Optional) The configuration of a presetCanaryGuangxi environment. Seepreset_canary_guangxibelow.preset_canary_guizhou- (Optional) The configuration of a presetCanaryGuizhou environment. Seepreset_canary_guizhoubelow.preset_canary_hainan- (Optional) The configuration of a presetCanaryHainan environment. Seepreset_canary_hainanbelow.preset_canary_hebei- (Optional) The configuration of a presetCanaryHebei environment. Seepreset_canary_hebeibelow.preset_canary_heilongjiang- (Optional) The configuration of a presetCanaryHeilongjiang environment. Seepreset_canary_heilongjiangbelow.preset_canary_henan- (Optional) The configuration of a presetCanaryHenan environment. Seepreset_canary_henanbelow.preset_canary_hong_kong- (Optional) The configuration of a presetCanaryHongKong environment. Seepreset_canary_hong_kongbelow.preset_canary_hubei- (Optional) The configuration of a presetCanaryHubei environment. Seepreset_canary_hubeibelow.preset_canary_hunan- (Optional) The configuration of a presetCanaryHunan environment. Seepreset_canary_hunanbelow.preset_canary_jiangsu- (Optional) The configuration of a presetCanaryJiangsu environment. Seepreset_canary_jiangsubelow.preset_canary_jiangxi- (Optional) The configuration of a presetCanaryJiangxi environment. Seepreset_canary_jiangxibelow.preset_canary_jilin- (Optional) The configuration of a presetCanaryJilin environment. Seepreset_canary_jilinbelow.preset_canary_liaoning- (Optional) The configuration of a presetCanaryLiaoning environment. Seepreset_canary_liaoningbelow.preset_canary_macau- (Optional) The configuration of a presetCanaryMacau environment. Seepreset_canary_macaubelow.preset_canary_neimenggu- (Optional) The configuration of a presetCanaryNeimenggu environment. Seepreset_canary_neimenggubelow.preset_canary_ningxia- (Optional) The configuration of a presetCanaryNingxia environment. Seepreset_canary_ningxiabelow.preset_canary_qinghai- (Optional) The configuration of a presetCanaryQinghai environment. Seepreset_canary_qinghaibelow.preset_canary_shaanxi- (Optional) The configuration of a presetCanaryShaanxi environment. Seepreset_canary_shaanxibelow.preset_canary_shandong- (Optional) The configuration of a presetCanaryShandong environment. Seepreset_canary_shandongbelow.preset_canary_shanghai- (Optional) The configuration of a presetCanaryShanghai environment. Seepreset_canary_shanghaibelow.preset_canary_shanxi- (Optional) The configuration of a presetCanaryShanxi environment. Seepreset_canary_shanxibelow.preset_canary_sichuan- (Optional) The configuration of a presetCanarySichuan environment. Seepreset_canary_sichuanbelow.preset_canary_taiwan- (Optional) The configuration of a presetCanaryTaiwan environment. Seepreset_canary_taiwanbelow.preset_canary_tianjin- (Optional) The configuration of a presetCanaryTianjin environment. Seepreset_canary_tianjinbelow.preset_canary_xinjiang- (Optional) The configuration of a presetCanaryXinjiang environment. Seepreset_canary_xinjiangbelow.preset_canary_xizang- (Optional) The configuration of a presetCanaryXizang environment. Seepreset_canary_xizangbelow.preset_canary_yunnan- (Optional) The configuration of a presetCanaryYunnan environment. Seepreset_canary_yunnanbelow.preset_canary_zhejiang- (Optional) The configuration of a presetCanaryZhejiang environment. Seepreset_canary_zhejiangbelow.preset_canary_overseas- (Optional) The configuration of a presetCanaryOverseas environment. Seepreset_canary_overseasbelow.
env_conf-staging
The staging supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-production
The production supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_anhui
The preset_canary_anhui supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_beijing
The preset_canary_beijing supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_chongqing
The preset_canary_chongqing supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_fujian
The preset_canary_fujian supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_gansu
The preset_canary_gansu supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_guangdong
The preset_canary_guangdong supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_guangxi
The preset_canary_guangxi supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_guizhou
The preset_canary_guizhou supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_hainan
The preset_canary_hainan supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_hebei
The preset_canary_hebei supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_heilongjiang
The preset_canary_heilongjiang supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_henan
The preset_canary_henan supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_hong_kong
The preset_canary_hong_kong supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_hubei
The preset_canary_hubei supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_hunan
The preset_canary_hunan supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_jiangsu
The preset_canary_jiangsu supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_jiangxi
The preset_canary_jiangxi supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_jilin
The preset_canary_jilin supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_liaoning
The preset_canary_liaoning supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_macau
The preset_canary_macau supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_neimenggu
The preset_canary_neimenggu supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_ningxia
The preset_canary_ningxia supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_qinghai
The preset_canary_qinghai supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_shaanxi
The preset_canary_shaanxi supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_shandong
The preset_canary_shandong supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_shanghai
The preset_canary_shanghai supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_shanxi
The preset_canary_shanxi supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_sichuan
The preset_canary_sichuan supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_taiwan
The preset_canary_taiwan supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_tianjin
The preset_canary_tianjin supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_xinjiang
The preset_canary_xinjiang supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_xizang
The preset_canary_xizang supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_yunnan
The preset_canary_yunnan supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_zhejiang
The preset_canary_zhejiang supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
env_conf-preset_canary_overseas
The preset_canary_overseas supports the following:
spec_name- (Optional) The specification of the CPU time slice. Valid values:5ms,50ms,100ms.code_rev- (Optional) The version number of the code.allowed_hosts- (Optional) Allowed DCDN domain names.
Attributes Reference
The following attributes are exported:
id- The resource ID in terraform of Er.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Er.update- (Defaults to 5 mins) Used when update the Er.delete- (Defaults to 5 mins) Used when delete the Er.
Import
DCDN Er can be imported using the id, e.g.
$ terraform import alicloud_dcdn_er.example <id>