forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
143 lines (143 loc) · 2.62 KB
/
domain.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建WAF域,配置HTTP/HTTPS端口、源IP、访问控制等设置,支持日志头自定义与负载均衡。
en: Create a WAF domain, configure settings including HTTP/HTTPS ports, source IP
addresses, access controls, support for custom log headers, and integration with
load balancing.
Parameters:
InstanceId:
Type: String
Domain:
Type: String
HttpToUserIp:
Type: Number
Default: 1
HttpPort:
Type: Json
Default:
- 80
IsAccessProduct:
Type: Number
Default: 0
SourceIps:
Type: Json
Default:
- 1.1.1.1
ReadTime:
Type: String
Description: ''
Default: '120'
ClusterType:
Type: Number
Default: 0
LoadBalancing:
Type: Number
Default: 0
LogHeaders:
Type: Json
Default:
- K: wafmark
V: test
WriteTime:
Type: String
Default: '120'
Http2Port:
Type: Json
Default:
- 443
ConnectionTime:
Type: String
Description: ''
Default: '5'
HttpsRedirect:
Type: Number
Default: 0
HttpsPort:
Type: Json
Default:
- 443
Resources:
WAFDomain:
Type: ALIYUN::WAF::Domain
Properties:
InstanceId:
Ref: InstanceId
HttpToUserIp:
Ref: HttpToUserIp
HttpPort:
Ref: HttpPort
IsAccessProduct:
Ref: IsAccessProduct
SourceIps:
Ref: SourceIps
ReadTime:
Ref: ReadTime
ClusterType:
Ref: ClusterType
LoadBalancing:
Ref: LoadBalancing
LogHeaders:
Ref: LogHeaders
WriteTime:
Ref: WriteTime
Http2Port:
Ref: Http2Port
ConnectionTime:
Ref: ConnectionTime
HttpsRedirect:
Ref: HttpsRedirect
DomainName:
Ref: Domain
HttpsPort:
Ref: HttpsPort
Outputs:
HttpToUserIp:
Value:
Fn::GetAtt:
- WAFDomain
- HttpToUserIp
IsAccessProduct:
Value:
Fn::GetAtt:
- WAFDomain
- IsAccessProduct
InstanceId:
Value:
Fn::GetAtt:
- WAFDomain
- InstanceId
ClusterType:
Value:
Fn::GetAtt:
- WAFDomain
- ClusterType
Cname:
Value:
Fn::GetAtt:
- WAFDomain
- Cname
LoadBalancing:
Value:
Fn::GetAtt:
- WAFDomain
- LoadBalancing
LogHeaders:
Value:
Fn::GetAtt:
- WAFDomain
- LogHeaders
Version:
Value:
Fn::GetAtt:
- WAFDomain
- Version
HttpsRedirect:
Value:
Fn::GetAtt:
- WAFDomain
- HttpsRedirect
Domain:
Value:
Fn::GetAtt:
- WAFDomain
- DomainName