-
Notifications
You must be signed in to change notification settings - Fork 35
/
monitor-group.yml
50 lines (50 loc) · 1.25 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
48
49
50
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建监控组并关联EIP实例,自动配置带宽计费与监控实例集合。
en: Create a monitoring group and associate Elastic IP (EIP) instances, automatically
configuring bandwidth billing and assembling a collection of monitoring instances.
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