forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
image-cache.yml
44 lines (44 loc) · 965 Bytes
/
image-cache.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
ROSTemplateFormatVersion: '2015-09-01'
Description: ECI ImageCache resource example
Parameters:
Image:
Type: Json
Description: The image list to be cached.
Default: '["busybox"]'
MaxLength: 20
SecurityGroupId:
Type: String
Description: Security group ID.
VSwitchId:
Type: String
Description: VSwitch ID.
ImageCacheName:
Type: String
Description: Image cache name.
Default: mytest
Resources:
Eip:
Type: ALIYUN::VPC::EIP
Properties:
InternetChargeType: PayByTraffic
Bandwidth: 5
ImageCache:
Type: ALIYUN::ECI::ImageCache
Properties:
VSwitchId:
Ref: VSwitchId
SecurityGroupId:
Ref: SecurityGroupId
EipInstanceId:
Ref: Eip
Image:
Ref: Image
ImageCacheName:
Ref: ImageCacheName
Outputs:
ImageCacheId:
Description: The ID of the image cache.
Value:
Fn::GetAtt:
- ImageCache
- ImageCacheId