-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbuild-enterprise-web-with-mobi.yml
391 lines (391 loc) · 21.2 KB
/
build-enterprise-web-with-mobi.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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 本模板用于低代码高效构建企业门户网站。
en: This template is used to efficiently build enterprise portals with low code.
Parameters:
DBInstanceId:
Type: String
Label:
en: RdsInstanceId
zh-cn: 数据库实例Id
Description:
en: The id of RDS instance, make sure the instance has entered the running state
zh-cn: 数据库实例Id,请确保实例已经进入运行中的状态。
Default: null
Required: true
AssociationProperty: ALIYUN::RDS::Instance::InstanceId
AssociationPropertyMetadata:
Visible:
Condition:
Fn::Equals:
- ${WhetherCreateRds}
- 使用已有RDS
WhetherCreateRds:
Type: String
Label: 是否新建云数据库(RDS)
AllowedValues:
- 新建RDS
- 使用已有RDS
Default: 新建RDS
Required: true
ZoneId:
Type: String
Label:
en: Zone ID
zh-cn: 可用区ID
Description:
en: Zone ID.
zh-cn: 可用区ID
Default: null
Required: true
AssociationProperty: ZoneId
AssociationPropertyMetadata:
AutoSelectFirst: true
Visible:
Condition:
Fn::Equals:
- ${WhetherCreateRds}
- 新建RDS
VpcCidrBlock:
Type: String
Label:
en: VPC CIDR Block
zh-cn: 专有网络网段
Description:
en: "The IP address range of the VPC in the CIDR Block form; <br>you can use
the following IP address ranges: <br><font color='green'>[10.0.0.0/8]</font><br><font
color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0.0/16]</font>"
zh-cn: 专有网络IP地址段范围,<br>您可以使用以下的IP地址段:<br><font color='green'>[10.0.0.0/8]</font><br><font
color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0.0/16]</font>
Default: 192.168.0.0/16
AllowedValues:
- 192.168.0.0/16
- 172.16.0.0/12
- 10.0.0.0/8
AssociationPropertyMetadata:
Visible:
Condition:
Fn::Equals:
- ${WhetherCreateRds}
- 新建RDS
VSwitchCidrBlock:
Type: String
Label:
en: VSwitch CIDR Block
zh-cn: 交换机子网网段
Description:
zh-cn: 必须属于VPC的子网段。
en: Must belong to the subnet segment of VPC.
AssociationProperty: ALIYUN::VPC::VSwitch::CidrBlock
Required: true
Default: 192.168.1.0/24
AssociationPropertyMetadata:
Visible:
Condition:
Fn::Equals:
- ${WhetherCreateRds}
- 新建RDS
DBInstanceClass:
Type: String
Label:
en: Instance Class
zh-cn: 实例规格
Default: mysql.n2.medium.1
Required: true
AssociationProperty: ALIYUN::RDS::Instance::InstanceType
AssociationPropertyMetadata:
ZoneId: ${ZoneId}
EngineVersion: '8.0'
Engine: MySQL
Category: Basic
InstanceChargeType: Postpaid
DBInstanceStorageType: cloud_essd
CommodityCode: bards
Visible:
Condition:
Fn::Equals:
- ${WhetherCreateRds}
- 新建RDS
DbUserName:
Type: String
Label:
en: RDS DB Username
zh-cn: RDS数据库账号
Required: true
Default: db_user
AllowedPattern:
^(?!dbo\b|login\b|admin\b|administrator\b|adminsys\b|alimail\b|aliyun\b|apache\b|appadmin\b|apsara\b|aurora\b|bulkadmin\b|cangjie\b|cdn\b|client\b|cm\b|dataengine\b|dayu\b|dba\b|dbcreator\b|developer\b|diskadmin\b|distribution\b|dns\b|download\b|eagleye\b|f5\b|faq\b|fuxi\b|galaxy\b|gongcao\b|gongming\b|groupon\b|ha\b|help\b|host\b|hostmaster\b|houyi\b|hr\b|info\b|information_schema\b|kuafu\b|lvs\b|manager\b|master\b|meituan\b|model\b|monitor\b|msdb\b|mssqld\b|mssqlsystemresource\b|mysql\b|nas\b|net\b|netops\b|netweb\b|news\b|no-reply\b|ntp\b|nuwa\b|nvwa\b|operator\b|opr\b|ops\b|opsdb\b|oracle\b|pangu\b|pe\b|post\b|postmaster\b|processadmin\b|public\b|qq\b|replicator\b|reply\b|root\b|sa\b|sales\b|san\b|security\b|securityadmin\b|serveradmin\b|services\b|setupadmin\b|shennong\b|siteops\b|sqlengine\b|sqlonline\b|squid\b|ssladmin\b|support\b|sys\b|sysadmin\b|syslog\b|system\b|taoyun\b|tempdb\b|test\b|tianyun\b|wangwang\b|eb\b|webmaster\b|webnet\b|xtrabak\b|youchao\b|yum\b|yunti\b|zhongkui\b|database\b|add\b|except\b|percent\b|all\b|exec\b|plan\b|alter\b|execute\b|precision\b|and\b|exists\b|primary\b|any\b|exit\b|print\b|as\b|fetch\b|proc\b|asc\b|file\b|procedure\b|authorization\b|fillfactor\b|public\b|backup\b|for\b|raiserror\b|begin\b|foreign\b|read\b|between\b|freetext\b|readtext\b|break\b|freetexttable\b|reconfigure\b|browse\b|from\b|references\b|bulk\b|full\b|replication\b|by\b|function\b|restore\b|cascade\b|goto\b|restrict\b|case\b|grant\b|return\b|check\b|group\b|revoke\b|checkpoint\b|having\b|right\b|close\b|holdlock\b|rollback\b|clustered\b|identity\b|rowcount\b|coalesce\b|identity_insert\b|rowguidcol\b|collate\b|identitycol\b|rule\b|column\b|if\b|save\b|commit\b|in\b|schema\b|compute\b|index\b|select\b|constraint\b|inner\b|session_user\b|contains\b|insert\b|set\b|containstable\b|intersect\b|setuser\b|continue\b|into\b|shutdown\b|convert\b|is\b|some\b|create\b|join\b|statistics\b|cross\b|key\b|system_user\b|current\b|kill\b|table\b|current_date\b|left\b|textsize\b|current_time\b|like\b|then\b|current_timestamp\b|lineno\b|to\b|current_user\b|load\b|top\b|cursor\b|national\b|tran\b|database\b|nocheck\b|transaction\b|dbcc\b|nonclustered\b|trigger\b|deallocate\b|not\b|truncate\b|declare\b|null\b|tsequal\b|default\b|nullif\b|union\b|delete\b|of\b|unique\b|deny\b|off\b|update\b|desc\b|offsets\b|updatetext\b|disk\b|on\b|use\b|distinct\b|open\b|user\b|distributed\b|opendatasource\b|values\b|double\b|openquery\b|varying\b|drop\b|openrowset\b|view\b|dummy\b|openxml\b|waitfor\b|dump\b|option\b|when\b|else\b|or\b|where\b|end\b|order\b|while\b|errlvl\b|outer\b|with\b|escape\b|over\b|writetext\b|add\b|analyze\b|asc\b|between\b|blob\b|call\b|change\b|check\b|condition\b|continue\b|cross\b|current_timestamp\b|database\b|day_microsecond\b|dec\b|default\b|desc\b|distinct\b|double\b|each\b|enclosed\b|exit\b|fetch\b|float8\b|foreign\b|goto\b|having\b|hour_minute\b|ignore\b|infile\b|insensitive\b|int1\b|int4\b|interval\b|iterate\b|keys\b|leading\b|like\b|lines\b|localtimestamp\b|longblob\b|low_priority\b|mediumint\b|minute_microsecond\b|modifies\b|no_write_to_binlog\b|on\b|optionally\b|out\b|precision\b|purge\b|read\b|references\b|rename\b|require\b|revoke\b|schema\b|select\b|set\b|spatial\b|sqlexception\b|sql_big_result\b|ssl\b|table\b|tinyblob\b|to\b|true\b|unique\b|update\b|using\b|utc_timestamp\b|varchar\b|when\b|with\b|xor\b|all\b|and\b|asensitive\b|bigint\b|both\b|cascade\b|char\b|collate\b|connection\b|convert\b|current_date\b|current_user\b|databases\b|day_minute\b|decimal\b|delayed\b|describe\b|distinctrow\b|drop\b|else\b|escaped\b|explain\b|float\b|for\b|from\b|grant\b|high_priority\b|hour_second\b|in\b|inner\b|insert\b|int2\b|int8\b|into\b|join\b|kill\b|leave\b|limit\b|load\b|lock\b|longtext\b|match\b|mediumtext\b|minute_second\b|natural\b|null\b|optimize\b|or\b|outer\b|primary\b|raid0\b|reads\b|regexp\b|repeat\b|restrict\b|right\b|schemas\b|sensitive\b|show\b|specific\b|sqlstate\b|sql_calc_found_rows\b|starting\b|terminated\b|tinyint\b|trailing\b|undo\b|unlock\b|usage\b|utc_date\b|values\b|varcharacter\b|where\b|write\b|year_month\b|alter\b|as\b|before\b|binary\b|by\b|case\b|character\b|column\b|constraint\b|create\b|current_time\b|cursor\b|day_hour\b|day_second\b|declare\b|delete\b|deterministic\b|div\b|dual\b|elseif\b|exists\b|false\b|float4\b|force\b|fulltext\b|group\b|hour_microsecond\b|if\b|index\b|inout\b|int\b|int3\b|integer\b|is\b|key\b|label\b|left\b|linear\b|localtime\b|long\b|loop\b|mediumblob\b|middleint\b|mod\b|not\b|numeric\b|option\b|order\b|outfile\b|procedure\b|range\b|real\b|release\b|replace\b|return\b|rlike\b|second_microsecond\b|separator\b|smallint\b|sql\b|sqlwarning\b|sql_small_result\b|straight_join\b|then\b|tinytext\b|trigger\b|union\b|unsigned\b|use\b|utc_time\b|varbinary\b|varying\b|while\b|x509\b|zerofill)([a-zA-Z][a-zA-Z0-9_]{0,30}[a-zA-Z0-9])$
ConstraintDescription:
en: Consist of 2 to 16 characters of lowercase letters, underline. Must begin
with a letter and be end with an alphanumeric character. For more information
about invalid characters, see 详见<a href="https://help.aliyun.com/zh/rds/developer-reference/forbidden-keywords"
target="_blank">Forbidden keywords table</a>.
zh-cn: 由小写字母、大写字母、数字、下划线(_)组成,以字母开头,以字母或数字结尾,最多32个字符。其他非法字符,详见<a href="https://help.aliyun.com/zh/rds/developer-reference/forbidden-keywords"
target="_blank">禁用关键字表</a>。
DbPassword:
Type: String
Label:
en: RDS Database Password
zh-cn: RDS数据库密码
Description:
en: "The password must be 8 to 32 characters in length. <br>\nIt must contain
the following character types: uppercase letters, lowercase letters, digits,
and special characters. <br> \nSpecial characters include <span style=\"background:#E7E9EB;\"\
><b>!@#$%^&*()_+-=</b></span>.<br>\n<b>If you repeatedly provision in this
tutorial on the same ECS instance, make sure that the MySQL database password
is exactly the same as the password set when the template was executed for
the first time. Otherwise, the result of provisioning is unavailable.</b>"
zh-cn: 长度为8~32位,需包含大写字母、小写字母、特殊字符和数字,允许的特殊字符包括<span style="background:#E7E9EB;"><b>!@#$%^&*()_+-=</b></span>。<br>
AssociationProperty: ALIYUN::RDS::Instance::AccountPassword
NoEcho: true
DbName:
Type: String
Label:
en: RDS DB Name
zh-cn: RDS数据库名称
Required: true
Default: db_name
AllowedPattern:
^(?!dbo\b|login\b|admin\b|administrator\b|adminsys\b|alimail\b|aliyun\b|apache\b|appadmin\b|apsara\b|aurora\b|bulkadmin\b|cangjie\b|cdn\b|client\b|cm\b|dataengine\b|dayu\b|dba\b|dbcreator\b|developer\b|diskadmin\b|distribution\b|dns\b|download\b|eagleye\b|f5\b|faq\b|fuxi\b|galaxy\b|gongcao\b|gongming\b|groupon\b|ha\b|help\b|host\b|hostmaster\b|houyi\b|hr\b|info\b|information_schema\b|kuafu\b|lvs\b|manager\b|master\b|meituan\b|model\b|monitor\b|msdb\b|mssqld\b|mssqlsystemresource\b|mysql\b|nas\b|net\b|netops\b|netweb\b|news\b|no-reply\b|ntp\b|nuwa\b|nvwa\b|operator\b|opr\b|ops\b|opsdb\b|oracle\b|pangu\b|pe\b|post\b|postmaster\b|processadmin\b|public\b|qq\b|replicator\b|reply\b|root\b|sa\b|sales\b|san\b|security\b|securityadmin\b|serveradmin\b|services\b|setupadmin\b|shennong\b|siteops\b|sqlengine\b|sqlonline\b|squid\b|ssladmin\b|support\b|sys\b|sysadmin\b|syslog\b|system\b|taoyun\b|tempdb\b|test\b|tianyun\b|wangwang\b|eb\b|webmaster\b|webnet\b|xtrabak\b|youchao\b|yum\b|yunti\b|zhongkui\b|database\b|add\b|except\b|percent\b|all\b|exec\b|plan\b|alter\b|execute\b|precision\b|and\b|exists\b|primary\b|any\b|exit\b|print\b|as\b|fetch\b|proc\b|asc\b|file\b|procedure\b|authorization\b|fillfactor\b|public\b|backup\b|for\b|raiserror\b|begin\b|foreign\b|read\b|between\b|freetext\b|readtext\b|break\b|freetexttable\b|reconfigure\b|browse\b|from\b|references\b|bulk\b|full\b|replication\b|by\b|function\b|restore\b|cascade\b|goto\b|restrict\b|case\b|grant\b|return\b|check\b|group\b|revoke\b|checkpoint\b|having\b|right\b|close\b|holdlock\b|rollback\b|clustered\b|identity\b|rowcount\b|coalesce\b|identity_insert\b|rowguidcol\b|collate\b|identitycol\b|rule\b|column\b|if\b|save\b|commit\b|in\b|schema\b|compute\b|index\b|select\b|constraint\b|inner\b|session_user\b|contains\b|insert\b|set\b|containstable\b|intersect\b|setuser\b|continue\b|into\b|shutdown\b|convert\b|is\b|some\b|create\b|join\b|statistics\b|cross\b|key\b|system_user\b|current\b|kill\b|table\b|current_date\b|left\b|textsize\b|current_time\b|like\b|then\b|current_timestamp\b|lineno\b|to\b|current_user\b|load\b|top\b|cursor\b|national\b|tran\b|database\b|nocheck\b|transaction\b|dbcc\b|nonclustered\b|trigger\b|deallocate\b|not\b|truncate\b|declare\b|null\b|tsequal\b|default\b|nullif\b|union\b|delete\b|of\b|unique\b|deny\b|off\b|update\b|desc\b|offsets\b|updatetext\b|disk\b|on\b|use\b|distinct\b|open\b|user\b|distributed\b|opendatasource\b|values\b|double\b|openquery\b|varying\b|drop\b|openrowset\b|view\b|dummy\b|openxml\b|waitfor\b|dump\b|option\b|when\b|else\b|or\b|where\b|end\b|order\b|while\b|errlvl\b|outer\b|with\b|escape\b|over\b|writetext\b|add\b|analyze\b|asc\b|between\b|blob\b|call\b|change\b|check\b|condition\b|continue\b|cross\b|current_timestamp\b|database\b|day_microsecond\b|dec\b|default\b|desc\b|distinct\b|double\b|each\b|enclosed\b|exit\b|fetch\b|float8\b|foreign\b|goto\b|having\b|hour_minute\b|ignore\b|infile\b|insensitive\b|int1\b|int4\b|interval\b|iterate\b|keys\b|leading\b|like\b|lines\b|localtimestamp\b|longblob\b|low_priority\b|mediumint\b|minute_microsecond\b|modifies\b|no_write_to_binlog\b|on\b|optionally\b|out\b|precision\b|purge\b|read\b|references\b|rename\b|require\b|revoke\b|schema\b|select\b|set\b|spatial\b|sqlexception\b|sql_big_result\b|ssl\b|table\b|tinyblob\b|to\b|true\b|unique\b|update\b|using\b|utc_timestamp\b|varchar\b|when\b|with\b|xor\b|all\b|and\b|asensitive\b|bigint\b|both\b|cascade\b|char\b|collate\b|connection\b|convert\b|current_date\b|current_user\b|databases\b|day_minute\b|decimal\b|delayed\b|describe\b|distinctrow\b|drop\b|else\b|escaped\b|explain\b|float\b|for\b|from\b|grant\b|high_priority\b|hour_second\b|in\b|inner\b|insert\b|int2\b|int8\b|into\b|join\b|kill\b|leave\b|limit\b|load\b|lock\b|longtext\b|match\b|mediumtext\b|minute_second\b|natural\b|null\b|optimize\b|or\b|outer\b|primary\b|raid0\b|reads\b|regexp\b|repeat\b|restrict\b|right\b|schemas\b|sensitive\b|show\b|specific\b|sqlstate\b|sql_calc_found_rows\b|starting\b|terminated\b|tinyint\b|trailing\b|undo\b|unlock\b|usage\b|utc_date\b|values\b|varcharacter\b|where\b|write\b|year_month\b|alter\b|as\b|before\b|binary\b|by\b|case\b|character\b|column\b|constraint\b|create\b|current_time\b|cursor\b|day_hour\b|day_second\b|declare\b|delete\b|deterministic\b|div\b|dual\b|elseif\b|exists\b|false\b|float4\b|force\b|fulltext\b|group\b|hour_microsecond\b|if\b|index\b|inout\b|int\b|int3\b|integer\b|is\b|key\b|label\b|left\b|linear\b|localtime\b|long\b|loop\b|mediumblob\b|middleint\b|mod\b|not\b|numeric\b|option\b|order\b|outfile\b|procedure\b|range\b|real\b|release\b|replace\b|return\b|rlike\b|second_microsecond\b|separator\b|smallint\b|sql\b|sqlwarning\b|sql_small_result\b|straight_join\b|then\b|tinytext\b|trigger\b|union\b|unsigned\b|use\b|utc_time\b|varbinary\b|varying\b|while\b|x509\b|zerofill)([a-z][a-z0-9_-]{0,62}[a-z0-9])$
ConstraintDescription:
en: The name must be 2 to 64 characters in length. The name must start with
a lowercase letter and end with a lowercase letter or digit. The name can
contain lowercase letters, digits, underscores (_), and hyphens (-). For more
information about invalid characters, see 详见<a href="https://help.aliyun.com/zh/rds/developer-reference/forbidden-keywords"
target="_blank">Forbidden keywords table</a>.
zh-cn: 由小写字母、数字、下划线(_)、中划线(-)组成,以小写字母开头,小写字母或数字结尾,最多64个字符。数据库名称在实例内必须是唯一的。其他非法字符,详见<a
href="https://help.aliyun.com/zh/rds/developer-reference/forbidden-keywords"
target="_blank">禁用关键字表</a>。
Conditions:
CreateRds:
Fn::Equals:
- 新建RDS
- Ref: WhetherCreateRds
NotCreateRds:
Fn::Equals:
- 使用已有RDS
- Ref: WhetherCreateRds
Locals:
MobiWorkspaces:
Type: DATASOURCE::MOBI::Workspaces
WorkspaceId:
Type: Eval
Value:
Fn::Select:
- 0
- Fn::GetAtt:
- MobiWorkspaces
- WorkspaceIds
Resources:
Vpc:
Condition: CreateRds
Type: ALIYUN::ECS::VPC
Properties:
VpcName: vpc
CidrBlock:
Ref: VpcCidrBlock
VSwitch:
Condition: CreateRds
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: Vpc
VSwitchName: vsw_001
CidrBlock:
Ref: VSwitchCidrBlock
RdsDBInstance:
Condition: CreateRds
Type: ALIYUN::RDS::DBInstance
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
DBInstanceClass:
Ref: DBInstanceClass
DBInstanceStorage: 50
Engine: MySQL
EngineVersion: '8.0'
Category: Basic
DBInstanceStorageType: cloud_essd
AllocatePublicConnection: true
SecurityIPList:
Fn::Join:
- ','
- - Ref: VpcCidrBlock
- 101.200.211.106
Account:
Type: ALIYUN::RDS::Account
Properties:
DBInstanceId:
Fn::If:
- CreateRds
- Ref: RdsDBInstance
- Ref: DBInstanceId
AccountType: Normal
AccountPassword:
Ref: DbPassword
AccountName:
Ref: DbUserName
DBInstanceSecurityIps:
Type: ALIYUN::RDS::DBInstanceSecurityIps
Condition: NotCreateRds
Properties:
DBInstanceId:
Fn::If:
- CreateRds
- Ref: RdsDBInstance
- Ref: DBInstanceId
DBInstanceIPArrayAttribute: 101.200.211.106
DependsOn:
- Connection
Connection:
Type: ALIYUN::RDS::Connection
Condition: NotCreateRds
Properties:
DBInstanceId:
Ref: DBInstanceId
Port: 3306
ConnectionStringPrefix:
Fn::Sub: ${DBInstanceId}o
DependsOn:
- RdsAccountPrivilege
DbBase:
Type: ALIYUN::RDS::Database
Properties:
DBInstanceId:
Fn::If:
- CreateRds
- Ref: RdsDBInstance
- Ref: DBInstanceId
CharacterSetName: utf8
DBName:
Ref: DbName
DBDescription: tutorial base
RdsAccountPrivilege:
Type: ALIYUN::RDS::AccountPrivilege
Properties:
AccountPrivilege: ReadWrite
DBInstanceId:
Fn::If:
- CreateRds
- Ref: RdsDBInstance
- Ref: DBInstanceId
DBName:
Fn::GetAtt:
- DbBase
- DBName
AccountName:
Fn::GetAtt:
- Account
- AccountName
DependsOn:
- Account
- DbBase
RandomString:
Type: ALIYUN::RandomString
Properties:
length: 7
character_classes:
- class: lowercase
min: 1
- class: digits
min: 1
Mobi:
Type: ALIYUN::MOBI::App
Properties:
AppName:
Fn::Sub: test_${RandomString.value}
AppIcon: -1
AppWorkspaceId:
Ref: WorkspaceId
AppType: Web
Template:
TemplateId: e1e78223-38c4-4184-972c-ac0eead93e11
ConnectionsContent:
Fn::Sub:
- |-
[
{
"name": "企业官网模板_${RandomString.value}",
"connectorType": {
"kind": "mysql",
"name": "mysql"
},
"folderId": "/",
"resourceRequirementId": "7dfe969b-1d54-4cbc-a8fd-209000b30ad0",
"resourceObject": {
"version": "1.0",
"id": "7dfe969b-1d54-4cbc-a8fd-209000b30ad0",
"name": "企业官网模板_20241203160633",
"type": "sql",
"subType": "mysql",
"connectionTemplates": {
"dev": {
"host": "${PublicConnectionString}",
"port": 3306,
"database": "${DbName}",
"username": "${DbUserName}",
"password": "${DbPassword}"
},
"product": {
"host": "${PublicConnectionString}",
"port": 3306,
"database": "${DbName}",
"username": "${DbUserName}",
"password": "${DbPassword}"
}
}
}
}
]
- PublicConnectionString:
Fn::If:
- CreateRds
- Fn::GetAtt:
- RdsDBInstance
- PublicConnectionString
- Fn::GetAtt:
- Connection
- ConnectionString
Outputs:
MobiUrl:
Description:
zh-cn: Mobi地址。
en: Mobi address.
Value:
Fn::Sub:
- https://mobinext.console.aliyun.com/${WorkspaceId}/app/${MobiId}
- WorkspaceId:
Ref: WorkspaceId
MobiId:
Ref: Mobi
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- WhetherCreateRds
- Parameters:
- ZoneId
- VpcCidrBlock
- VSwitchCidrBlock
Label:
default:
en: VPC
zh-cn: 专有网络配置
- Parameters:
- DBInstanceId
- DBInstanceClass
- DbUserName
- DbPassword
- DbName
Label:
default:
en: RDS
zh-cn: RDS配置
TemplateTags:
- acs:technical-solution:db:低代码高效构建企业门户网站