-
Notifications
You must be signed in to change notification settings - Fork 35
/
dcdn-acceleration-and-security-protection.yml
90 lines (90 loc) · 2.27 KB
/
dcdn-acceleration-and-security-protection.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建DCDN域,解析CNAME记录,实现指定域名全球加速。
en: Create a DCDN domain, resolve the CNAME record, and enable global acceleration
for the specified domain.
Parameters:
Scope:
Type: String
Label:
zh-cn: 加速区域
en: Acceleration area
Description:
zh-cn: 选择加速区域。加速区域为仅中国内地和全球时,服务域名必须备案。
en: Select the acceleration area. When the acceleration region is only in mainland
China and the world, the service domain name must be filed.
Default: domestic
AllowedValues:
- domestic
- overseas
- global
DomainName:
Type: String
Label:
zh-cn: 加速域名
en: Accelerated domain name
Description:
zh-cn: 加速域名是指接入DCDN,用于加速源站的域名。
en: Accelerated domain name refers to the domain name of the access DCDN used
to accelerate the source site.
SourceDomain:
Type: String
Label:
zh-cn: 源站域名
en: Source station domain name
Description:
zh-cn: 需要加速的源站域名。
en: The source domain name that needs to be accelerated.
RootDomain:
Type: String
Label:
zh-cn: 根域名
en: Root domain name
Description:
zh-cn: 加速域名的根域名
en: The root domain name of the accelerated domain name
Resources:
Domain:
Type: ALIYUN::DCDN::Domain
Properties:
Sources:
- Type: domain
Content:
Ref: SourceDomain
DomainName:
Ref: DomainName
Scope:
Ref: Scope
DomainRecord:
Type: ALIYUN::DNS::DomainRecord
Properties:
Type: CNAME
RR:
Fn::Select:
- 0
- Fn::Split:
- .
- Ref: DomainName
Value:
Fn::GetAtt:
- Domain
- Cname
DomainName:
Ref: RootDomain
Outputs:
Cname:
Description: CNAME
Value:
Fn::GetAtt:
- Domain
- Cname
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- Scope
- DomainName
- SourceDomain
- RootDomain
TemplateTags:
- acs:document-help:试用教程:启用DCDN加速和安全防护