-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::RDS::CreateDbInstance.json
214 lines (214 loc) · 7.24 KB
/
ACS::RDS::CreateDbInstance.json
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"name-en": "ACS::RDS::CreateDbInstance",
"name-zh-cn": "创建实例(RDS)",
"en": "Creates an RDS instance",
"zh-cn": "创建一台RDS实例"
},
"Parameters": {
"regionId": {
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId",
"Default": "{{ ACS::RegionId }}"
},
"payType": {
"Label": {
"en": "RDSInstancePayType",
"zh-cn": "RDS实例的计费方式"
},
"Type": "String",
"AllowedValues": [
"Postpaid",
"Prepaid",
"Serverless"
]
},
"period": {
"Label": {
"en": "PeriodType",
"zh-cn": "周期类型"
},
"Type": "String",
"AssociationPropertyMetadata": {
"Visible": {
"Condition": {
"Fn::Equals": [
"${payType}",
"Prepaid"
]
}
}
},
"AllowedValues": [
"Month",
"Year"
],
"Default": "Month"
},
"usedTime": {
"Label": {
"en": "Period",
"zh-cn": "预付费时长"
},
"Description": {
"en": "<td><p>Value:</p>\n <ul>\n <li><p>When the value of parameter PeriodType is Year:1~5. </p></li>\n <li><p>When the parameter PeriodType value is Month:1~11. </p></li>\n </ul>\n</td>",
"zh-cn": "<td><p>取值:</p>\n <ul>\n <li><p>当参数PeriodType取值为Year时:1~5。</p></li>\n <li><p>当参数PeriodType取值为Month:1~11。</p></li>\n </ul>\n</td>"
},
"Type": "Number",
"AssociationPropertyMetadata": {
"Visible": {
"Condition": {
"Fn::Equals": [
"${payType}",
"Prepaid"
]
}
}
},
"MinValue": 1,
"MaxValue": 9,
"Default": 1
},
"engine": {
"Label": {
"en": "Engine",
"zh-cn": "数据库类型"
},
"Type": "String",
"AssociationProperty": "ALIYUN::RDS::Engine::EngineId"
},
"engineVersion": {
"Label": {
"en": "EngineVersion",
"zh-cn": "数据库类型版本"
},
"Type": "String",
"AssociationProperty": "ALIYUN::RDS::Engine::EngineVersion",
"AssociationPropertyMetadata": {
"Engine": "engine"
}
},
"dBInstanceClass": {
"Label": {
"en": "RDSInstanceClass",
"zh-cn": "RDS实例规格"
},
"Type": "String",
"AssociationProperty": "ALIYUN::RDS::Instance::InstanceType"
},
"dBInstanceStorage": {
"Label": {
"en": "RDSInstanceStorage",
"zh-cn": "RDS实例的存储容量"
},
"Description": {
"en": "<td><p>Value:</p>\n <ul>\n <li><p>MySQL: 5~1000. </p></li>\n <li><p>SQLServer: 10~1000. </p></li>\n <li><p>PostgreSQL: 5~2000. </p></li>\n <li><p>PPAS: 5~2000. </p></li>\n </ul>\n <p>Unit:GB. </p>\n <div>\n <div><i></i><strong>Description: Increments every 5 GB. </strong></div>\n </div>\n</td>",
"zh-cn": "<td><p>取值: </p>\n <ul>\n <li><p>MySQL:5~1000。</p></li>\n <li><p>SQLServer:10~1000。</p></li>\n <li><p>PostgreSQL:5~2000。</p></li>\n <li><p>PPAS:5~2000。</p></li>\n </ul>\n <p>单位:GB。</p>\n <div>\n <div><i></i><strong>说明: 每5GB进行递增。</strong></div>\n </div>\n</td>"
},
"Type": "Number",
"MinValue": 5,
"MaxValue": 2000,
"Default": 10
},
"securityIPList": {
"Label": {
"en": "IPWhitelistRDSInstance",
"zh-cn": "RDS实例的IP白名单"
},
"Type": "String",
"Default": ""
},
"instanceNetworkType": {
"Label": {
"en": "InstanceNetworkType",
"zh-cn": "RDS实例的网络类型"
},
"Description": {
"en": "<div> <p>Network type of the instance, value:</p> <ul> <li><strong>VPC</strong>: Private network. </li> <li><strong>Classic</strong>: Classic network (default). </li> </ul> <strong>Description</strong> <ul> <li>MySQL cloud disk instance only supports VPC, this parameter must be configured as <strong>VPC</strong>. </li> <li>PostgreSQL and MariaDB instances only support VPC, this parameter must be configured as <strong>VPC</strong>. </li> <li>SQL Server stand-alone and Web instances support classic networks and VPCs. Other instances only support VPC, and this parameter must be configured as <strong>VPC</strong>. </li> </ul> </div>",
"zh-cn": "<div> <p>实例的网络类型,取值:</p> <ul> <li><strong>VPC</strong>:专有网络。</li> <li><strong>Classic</strong>:经典网络(默认)。</li> </ul> <strong>说明</strong> <ul> <li>MySQL云盘实例只支持专有网络,此参数必须配置为<strong>VPC</strong>。</li> <li>PostgreSQL和MariaDB实例只支持专有网络,此参数必须配置为<strong>VPC</strong>。</li> <li>SQL Server单机版和Web版实例支持经典网络和专有网络。其余实例只支持专有网络,此参数必须配置为<strong>VPC</strong>。</li> </ul> </div>"
},
"Type": "String",
"AllowedValues": [
"VPC",
"Classic"
],
"Default": "VPC"
},
"dBInstanceNetType": {
"Label": {
"en": "RDSInstanceNetType",
"zh-cn": "数据库实例的网络类型"
},
"Type": "String",
"AllowedValues": [
"Internet",
"Intranet"
],
"Default": "Intranet"
}
},
"Tasks": [
{
"Name": "createDBInstance",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Creates an RDS instance",
"zh-cn": "创建一台RDS实例"
},
"Properties": {
"Service": "RDS",
"API": "CreateDBInstance",
"Parameters": {
"RegionId": "{{ regionId }}",
"DBInstanceClass": "{{ dBInstanceClass }}",
"DBInstanceNetType": "{{ dBInstanceNetType }}",
"DBInstanceStorage": "{{ dBInstanceStorage }}",
"Engine": "{{ engine }}",
"EngineVersion": "{{ engineVersion }}",
"PayType": "{{ payType }}",
"Period": "{{ period }}",
"UsedTime": "{{ usedTime }}",
"SecurityIPList": "{{ securityIPList }}",
"InstanceNetworkType": "{{ instanceNetworkType }}"
}
},
"Outputs": {
"dBInstanceId": {
"Type": "String",
"ValueSelector": "DBInstanceId"
}
}
},
{
"Name": "untilInstanceReady",
"Action": "ACS::WaitFor",
"Description": {
"en": "Waits for DB Instance to enter running status",
"zh-cn": "等待DB实例进入运行状态"
},
"Properties": {
"Service": "RDS",
"API": "DescribeDBInstances",
"Parameters": {
"RegionId": "{{ regionId }}",
"DBInstanceId": "{{ createDBInstance.dBInstanceId }}"
},
"DesiredValues": [
"Running"
],
"PropertySelector": "Items.DBInstance[].DBInstanceStatus"
}
}
],
"Outputs": {
"dBInstanceId": {
"Type": "String",
"Value": "{{ createDBInstance.dBInstanceId }}"
}
}
}