forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
216 lines (216 loc) · 6.73 KB
/
config.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
ROSTemplateFormatVersion: '2015-09-01'
Description: Config Rule resource example
Parameters:
TagKeyScope:
Type: String
Description: The rule monitors the tag key, only applies to rules created based
on managed rules
Default: null
TagValueScope:
Type: String
Description: The rule monitors the tag value, only applies to rules created based
on managed rules
Default: null
Description:
Type: String
Description: The description of the rule
Default: null
ExcludeResourceIdsScope:
Type: String
Description: The rule monitors excluded resource IDs, multiple of which are separated
by commas, only applies to rules created based on managed rules, , custom rule
this field is empty
Default: null
SourceOwner:
Type: String
Description: 'Specifies whether you or Alibaba Cloud owns and manages the rule.
Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN:
The rule is a managed rule and Alibaba Cloud owns the rule'
SourceIdentifier:
Type: String
Description: The identifier of the rule. For a managed rule, the value is the
name of the managed rule. For a custom rule, the value is the ARN of the custom
rule
MaximumExecutionFrequency:
Type: String
Description: 'The frequency of the compliance evaluations. Valid values: One_Hour
Three_Hours Six_Hours Twelve_Hours TwentyFour_Hours'
Default: null
RegionIdsScope:
Type: String
Description: The rule monitors region IDs, separated by commas, only applies to
rules created based on managed rules
Default: null
ConfigRuleTriggerTypes:
Type: String
Description: 'The trigger type of the rule. Valid values: ConfigurationItemChangeNotification:
The rule is triggered upon configuration changes. ScheduledNotification: The
rule is triggered as scheduled.'
ResourceGroupIdsScope:
Type: String
Description: The rule monitors resource group IDs, separated by commas, only applies
to rules created based on managed rules
Default: null
RiskLevel:
Type: Number
Description: 'The risk level of the resources that are not compliant with the
rule. Valid values: 1: critical 2: warning 3: info'
ResourceTypesScope:
Type: Json
Description: The types of the resources to be evaluated against the rule
RuleName:
Type: String
Description: The name of the rule.
InputParameters:
Type: Json
Description: The settings of the input parameters for the rule
Default: null
Resources:
ConfigRule:
Type: ALIYUN::Config::Rule
Properties:
TagKeyScope:
Ref: TagKeyScope
TagValueScope:
Ref: TagValueScope
Description:
Ref: Description
ExcludeResourceIdsScope:
Ref: ExcludeResourceIdsScope
SourceOwner:
Ref: SourceOwner
SourceIdentifier:
Ref: SourceIdentifier
MaximumExecutionFrequency:
Ref: MaximumExecutionFrequency
RegionIdsScope:
Ref: RegionIdsScope
ConfigRuleTriggerTypes:
Ref: ConfigRuleTriggerTypes
ResourceGroupIdsScope:
Ref: ResourceGroupIdsScope
RiskLevel:
Ref: RiskLevel
ResourceTypesScope:
Ref: ResourceTypesScope
RuleName:
Ref: RuleName
InputParameters:
Ref: InputParameters
Outputs:
TagKeyScope:
Description: The rule monitors the tag key, only applies to rules created based
on managed rules
Value:
Fn::GetAtt:
- ConfigRule
- TagKeyScope
TagValueScope:
Description: The rule monitors the tag value, only applies to rules created based
on managed rules
Value:
Fn::GetAtt:
- ConfigRule
- TagValueScope
Description:
Description: The description of the rule
Value:
Fn::GetAtt:
- ConfigRule
- Description
ExcludeResourceIdsScope:
Description: The rule monitors excluded resource IDs, multiple of which are separated
by commas, only applies to rules created based on managed rules, , custom rule
this field is empty
Value:
Fn::GetAtt:
- ConfigRule
- ExcludeResourceIdsScope
SourceOwner:
Description: 'Specifies whether you or Alibaba Cloud owns and manages the rule.
Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN:
The rule is a managed rule and Alibaba Cloud owns the rule'
Value:
Fn::GetAtt:
- ConfigRule
- SourceOwner
SourceIdentifier:
Description: The identifier of the rule. For a managed rule, the value is the
name of the managed rule. For a custom rule, the value is the ARN of the custom
rule
Value:
Fn::GetAtt:
- ConfigRule
- SourceIdentifier
MaximumExecutionFrequency:
Description: 'The frequency of the compliance evaluations. Valid values: One_Hour
Three_Hours Six_Hours Twelve_Hours TwentyFour_Hours'
Value:
Fn::GetAtt:
- ConfigRule
- MaximumExecutionFrequency
ConfigRuleId:
Description: The ID of the rule
Value:
Fn::GetAtt:
- ConfigRule
- ConfigRuleId
EventSource:
Description: The event source of the rule.
Value:
Fn::GetAtt:
- ConfigRule
- EventSource
RegionIdsScope:
Description: The rule monitors region IDs, separated by commas, only applies to
rules created based on managed rules
Value:
Fn::GetAtt:
- ConfigRule
- RegionIdsScope
ConfigRuleArn:
Description: config rule arn
Value:
Fn::GetAtt:
- ConfigRule
- ConfigRuleArn
ConfigRuleTriggerTypes:
Description: 'The trigger type of the rule. Valid values: ConfigurationItemChangeNotification:
The rule is triggered upon configuration changes. ScheduledNotification: The
rule is triggered as scheduled.'
Value:
Fn::GetAtt:
- ConfigRule
- ConfigRuleTriggerTypes
ResourceGroupIdsScope:
Description: The rule monitors resource group IDs, separated by commas, only applies
to rules created based on managed rules
Value:
Fn::GetAtt:
- ConfigRule
- ResourceGroupIdsScope
RiskLevel:
Description: 'The risk level of the resources that are not compliant with the
rule. Valid values: 1: critical 2: warning 3: info'
Value:
Fn::GetAtt:
- ConfigRule
- RiskLevel
ResourceTypesScope:
Description: The types of the resources to be evaluated against the rule
Value:
Fn::GetAtt:
- ConfigRule
- ResourceTypesScope
RuleName:
Description: The name of the rule.
Value:
Fn::GetAtt:
- ConfigRule
- RuleName
InputParameters:
Description: The settings of the input parameters for the rule
Value:
Fn::GetAtt:
- ConfigRule
- InputParameters