forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepay-instance.yml
46 lines (46 loc) · 917 Bytes
/
prepay-instance.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
ROSTemplateFormatVersion: '2015-09-01'
Description: Redis PrepayInstance resource example
Parameters:
InstanceClass:
Type: String
Description: Instance Class
VpcName:
Type: String
VSwitchName:
Type: String
ZoneId:
Type: String
Resources:
Vpc:
Type: ALIYUN::ECS::VPC
Properties:
VpcName:
Ref: VpcName
CidrBlock: 192.168.0.0/16
VSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: Vpc
VSwitchName:
Ref: VSwitchName
CidrBlock: 192.168.10.0/24
DependsOn: Vpc
RedisPrepayInstance:
Type: ALIYUN::REDIS::PrepayInstance
Properties:
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
InstanceClass:
Ref: InstanceClass
EngineVersion: '5.0'
Outputs:
OrderId:
Value:
Fn::GetAtt:
- RedisPrepayInstance
- OrderId