-
Notifications
You must be signed in to change notification settings - Fork 35
/
prepay-instance.yml
49 lines (49 loc) · 1.13 KB
/
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
47
48
49
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建预付费Redis实例,包含VPC、交换机配置,可指定实例类型、区域及网络设置。
en: Create a prepaid Redis instance, encompassing VPC and switch configurations,
with the flexibility to specify instance type, region, and network settings.
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