forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memcache-instance.yml
143 lines (143 loc) · 3.86 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
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
Metadata:
ALIYUN::ROS::Designer:
id: d6c1fa46-58c0-40cb-a4d0-fef3a66e32f9
EcsVSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
CidrBlock: 192.168.10.0/24
DependsOn: EcsVpc
Metadata:
ALIYUN::ROS::Designer:
id: 7e719752-efc5-48b2-b7b5-70bbc8ebf6a5
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
Metadata:
ALIYUN::ROS::Designer:
id: e7c860fc-19cb-49d4-bb6d-c29efe5b4378
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::Designer:
7e719752-efc5-48b2-b7b5-70bbc8ebf6a5:
embeds:
- e7c860fc-19cb-49d4-bb6d-c29efe5b4378
position:
x: 98
y: 163
size:
height: 169
width: 201
z: 1
d6c1fa46-58c0-40cb-a4d0-fef3a66e32f9:
embeds:
- 7e719752-efc5-48b2-b7b5-70bbc8ebf6a5
position:
x: 40
y: 117
size:
height: 261
width: 311
z: 0
e7c860fc-19cb-49d4-bb6d-c29efe5b4378:
position:
x: 172
y: 223
size:
height: 60
width: 60
z: 2