-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathmemcache-instance.yml
170 lines (170 loc) · 4.02 KB
/
memcache-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建VPC环境下的Memcache实例,配置VPC、子网,设定实例规格、密码等属性。
en: Create a Memcache instance within a VPC environment, configure the VPC and subnets,
and set instance specifications, passwords, and other attributes.
Parameters:
ZoneId:
Type: String
Label:
en: Zone ID
zh-cn: 可用区
Description:
en: Create an Availability Zone for an instance to ensure that the Availability
Zone supports the creation of Memcache resource specifications.
zh-cn: 创建实例的可用区,确保可用区支持Memcache资源规格的创建。
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
InstanceClass:
Type: String
Label:
en: Instance Type
zh-cn: 实例规格
Description:
en: Instance specifications, please refer to the Alibaba Cloud Memcache product
website documentation or online consultation.
zh-cn: 实例规格,请参考:<a href='https://help.aliyun.com/document_detail/95169.html'
target='_blank'><b><font color='blue'>查看规格信息</font></b></a>
Default: memcache.master.small.default
Password:
Type: String
Label:
en: Instance Password
zh-cn: 实例密码
Description:
en: 'Length 8-32 characters, can contain size letters, Numbers and special symbols,
including: !@#$%^&*()_+-='
zh-cn: 长度8-32个字符,可包含大小字母、数字及特殊符号(包含:!@#$%^&*()_+-=)
ConstraintDescription:
en: '8-32 characters, can contain size letters, Numbers and special symbols,
including: !@#$%^&*()_+-='
zh-cn: 8-32个字符,可包含大小字母、数字及特殊符号(包含:!@#$%^&*()_+-=)
MinLength: 8
MaxLength: 32
NoEcho: true
Resources:
EcsVpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock: 192.168.0.0/16
EcsVSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
CidrBlock: 192.168.10.0/24
DependsOn: EcsVpc
MemcacheInstance:
Type: ALIYUN::Memcache::Instance
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
VSwitchId:
Ref: EcsVSwitch
InstanceClass:
Ref: InstanceClass
NetworkType: VPC
Password:
Ref: Password
DependsOn: EcsVSwitch
Outputs:
ConnectionDomain:
Description: Intranet connection string
Value:
Fn::GetAtt:
- MemcacheInstance
- ConnectionDomain
InstanceId:
Value:
Fn::GetAtt:
- MemcacheInstance
- InstanceId
Port:
Value:
Fn::GetAtt:
- MemcacheInstance
- Port
QPS:
Value:
Fn::GetAtt:
- MemcacheInstance
- QPS
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ZoneId
- InstanceClass
- Password
Label:
default: Memcache
TemplateTags:
- acs:example:数据库:创建云数据库Memcache版实例
ALIYUN::ROS::Composer:
b63c4fbf:
Rect:
- 560
- 480
- 40
- 100
- 1
- 0
ResT: Composer::ROSParameter::AlibabaCloud
c5a48335:
Parent: b63c4fbf
Rect:
- 520
- 410
- 60
- 150
- 2
- 0
ResT: Composer::ROSParameter::Region
7ff2de4c:
Res:
- EcsVpc
Parent: c5a48335
Rect:
- 480
- 340
- 80
- 200
- 3
- 0
84566aa4:
Res:
- ZoneId
Parent: 7ff2de4c
Rect:
- 440
- 270
- 100
- 250
- 4
- 0
ResT: Composer::ROSParameter::Zone
71520fdb:
Res:
- EcsVSwitch
Parent: 84566aa4
Rect:
- 400
- 200
- 120
- 300
- 5
- 0
7313d389:
Res:
- MemcacheInstance
Parent: 71520fdb
Rect:
- 40
- 40
- 300
- 365
- 6
- 0