forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mongodb-instance.yml
52 lines (52 loc) · 1.04 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
ROSTemplateFormatVersion: '2015-09-01'
Description: MONGODB Instance resource example
Parameters:
ZoneId:
Type: String
VpcId:
Type: String
EngineVersion:
Type: String
Default: '4.2'
VSwitchId:
Type: String
NetworkType:
Type: String
Default: VPC
DBInstanceClass:
Type: String
Default: dds.mongo.mid
DBInstanceStorage:
Type: String
Default: '10'
Resources:
MongoDB:
Type: ALIYUN::MONGODB::Instance
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
DBInstanceClass:
Ref: DBInstanceClass
DBInstanceStorage:
Ref: DBInstanceStorage
NetworkType:
Ref: NetworkType
EngineVersion:
Ref: EngineVersion
Outputs:
DBInstanceStatus:
Description: Status of mongodb instance.
Value:
Fn::GetAtt:
- MongoDB
- DBInstanceStatus
InstanceId:
Description: The instance id of created mongodb instance.
Value:
Fn::GetAtt:
- MongoDB
- DBInstanceId