forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
monitor-group.yml
47 lines (47 loc) · 1.04 KB
/
monitor-group.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
ROSTemplateFormatVersion: '2015-09-01'
Description: CMS MonitorGroup/MonitorGroupInstances resource example
Parameters:
GroupName:
Type: String
Description: The name of the application group.
Default: mytest
EipName:
Type: String
Default: mytest
Resources:
MonitorGroup:
Type: ALIYUN::CMS::MonitorGroup
Properties:
GroupName:
Ref: GroupName
Eip:
Type: ALIYUN::VPC::EIP
Properties:
InternetChargeType: PayByTraffic
Bandwidth: 5
Name:
Ref: EipName
MonitorGroupInstances:
Type: ALIYUN::CMS::MonitorGroupInstances
Properties:
Instances:
- InstanceName:
Ref: EipName
Category: eip
InstanceId:
Ref: Eip
RegionId:
Ref: ALIYUN::Region
GroupId:
Fn::GetAtt:
- MonitorGroup
- GroupId
DependsOn:
- MonitorGroup
Outputs:
GroupId:
Description: 'Application group ID generated after the group is created. '
Value:
Fn::GetAtt:
- MonitorGroup
- GroupId