forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
disk.yml
40 lines (40 loc) · 942 Bytes
/
disk.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建可定制磁盘资源,支持指定区域、类型、容量范围,输出磁盘状态与ID。
en: Create customizable disk resources with support for specifying region, type,
and capacity range, outputting disk status and ID.
Parameters:
ZoneId:
Type: String
AssociationProperty: ZoneId
DiskCategory:
Type: String
Description: The disk category.
Size:
Type: Number
Description: The size of the disk unit in GB.
MinValue: 5
MaxValue: 2000
Resources:
Disk:
Type: ALIYUN::ECS::Disk
Properties:
ZoneId:
Ref: ZoneId
Size:
Ref: Size
DiskCategory:
Ref: DiskCategory
Outputs:
Status:
Description: Created disk status.
Value:
Fn::GetAtt:
- Disk
- Status
DiskId:
Description: Id of created disk.
Value:
Fn::GetAtt:
- Disk
- DiskId