-
Notifications
You must be signed in to change notification settings - Fork 35
/
mongodb-instance.yml
92 lines (92 loc) · 3.27 KB
/
mongodb-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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建经典网络MongoDB实例,可选实例规格与存储空间,设置IP白名单,输出实例状态与ID。
en: Create a Classic Network MongoDB instance with optional specifications and storage
capacity, configure IP whitelist, and output the instance status and ID.
Parameters:
DBInstanceClass:
Type: String
Label:
en: The Instance type
zh-cn: 实例规格
Description:
en: The DDS Instance type
zh-cn: 实例规格
Default: dds.mongo.mid
AllowedValues:
- dds.mongo.mid
- dds.mongo.standard
- dds.mongo.large
- dds.mongo.xlarge
- dds.mongo.2xlarge
- dds.mongo.4xlarge
DBInstanceStorage:
Type: Number
Label:
en: DB Instance Storage
zh-cn: 存储空间
Description:
en: The storage space
zh-cn: 实例存储空间
ConstraintDescription:
en: The storage space. Incrementing in every 5G.
zh-cn: 存储空间。每 5G 增加一次。
Default: 10
MinValue: 5
MaxValue: 1000
SecurityIPArray:
Type: String
Label:
en: Security IP Array
zh-cn: 实例的IP白名单
Description:
en: The white list of ECS instances to be allowed. Separated by commas.<br>The
formats supported, such as, 0.0.0.0/0, 10.23.12.24(IP), 10.23.12.24/24(CIDR
model, classless interdomain routing, /24 means the length of the address
prefix, The scope is [1,32]). <br>0.0.0.0/0 and empty is on behalf of no IP
access restrictions, and the database may face high security risks.
zh-cn: 实例的IP白名单,以逗号隔开,不可重复,最多1000个IP。<br>支持格式:%,0.0.0.0/0,10.23.12.24(IP)或者10.23.12.24/24(CIDR模式,无类域间路由,/24表示地址前缀的长度,范围为1~32)。
ConstraintDescription:
en: Separated by commas. <br> The formats supported, such as, 0.0.0.0/0, 10.23.12.24(IP),
10.23.12.24/24(CIDR model, classless interdomain routing, /24 means the length
of the address prefix. The scope is [1,32]). <br> 0.0.0.0/0 and empty is on
behalf of no IP access restrictions, and the database may face high security
risks.
zh-cn: 以逗号分隔。<br>支持的格式,如,0.0.0.0/0、10.23.12.24(IP)、10.23.12.24/24(CIDR模型,无类域间路由,/24表示地址前缀的长度
.范围为[1,32]).<br>0.0.0.0/0和空代表没有IP访问限制,数据库可能面临较高的安全风险。
Default: 0.0.0.0/0
Resources:
MongoDB:
Type: ALIYUN::MONGODB::Instance
Properties:
DBInstanceClass:
Ref: DBInstanceClass
DBInstanceStorage:
Ref: DBInstanceStorage
NetworkType: VPC
SecurityIPArray:
Ref: SecurityIPArray
Outputs:
DBInstanceStatus:
Description: The status of database
Value:
Fn::GetAtt:
- MongoDB
- DBInstanceStatus
InstanceId:
Description: The instance ID
Value:
Fn::GetAtt:
- MongoDB
- DBInstanceId
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- DBInstanceClass
- DBInstanceStorage
- SecurityIPArray
Label:
default: Mongodb
TemplateTags:
- acs:example:数据库:创建云数据库MongoDB版实例