-
Notifications
You must be signed in to change notification settings - Fork 35
/
single-website-on-cloud-cloud-architecture.yml
789 lines (789 loc) · 24.2 KB
/
single-website-on-cloud-cloud-architecture.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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 升级单机网站至云端,自动部署ECS、RDS、SLB资源,实现弹性伸缩与云化架构,支持自定义配置与安全设置。
en: Upgrade the stand-alone website to the cloud, automatically deploy ECS, RDS, and SLB resources, realize elastic scaling and cloud architecture, and support customized configuration and security settings.
Parameters:
RdsWhiteList:
Type: String
Label:
en: Relational Database Whitelist
zh-cn: 关系型数据库白名单
Description:
en: Relational database (RDS) whitelist, which defaults to the default value
of the previous template.
zh-cn: 关系型数据库(RDS)白名单, 默认为上个模版的默认值专有网络网段。
Default: 192.168.0.0/16
VpcId:
Type: String
Label:
en: VPC ID
zh-cn: 专有网络实例ID
Description:
en: VPC ID (existing) for newly created ECS, RDS, SLB resources
zh-cn: 新创建ECS、RDS、SLB资源所处的VPC ID(已存在的)
AssociationProperty: ALIYUN::ECS::VPC::VPCId
MinLength: '5'
VSwitchId:
Type: String
Label:
en: VSwitch Instance ID
zh-cn: 交换机实例ID
Description:
en: VSwitch ID (existing) for newly created ECS, RDS, SLB resources
zh-cn: 新创建ECS、RDS、SLB资源所处的VSwitch ID(已存在的)
MinLength: '5'
SecurityGroupId:
Type: String
Label:
en: Security Group ID
zh-cn: 安全组ID
Description:
en: Security Group ID (existing) where the newly created ECS resource is
zh-cn: 新创建ECS资源所处的安全组ID(已存在的)
MinLength: '5'
InstanceIds:
Type: String
Label:
en: ECS Instances ID
zh-cn: 服务器实例ID
Description:
en: Specify the existing server instance ID, or multiple, separated by commas,
requiring a custom mirror and changing the default application configuration.
zh-cn: 指定已存在的服务器实例ID,也可以多个,多个以英文逗号分离,需要自定义镜像并更改默认应用配置。
MinLength: '5'
Ecs2GroupInstanceType:
Type: String
Label:
en: Instance Type
zh-cn: 实例规格
Description:
en: 'Fill in specifications that can be used under the existing VSwitch availability
zone;</b></font><br>general specifications:<font color=''red''><b>ecs.c5.large</b></font><br>note:
a few zones do not support general specifications<br>see detail: <a href=''https://www.alibabacloud.com/help/en/doc-detail/25378.html''
target=''_blank''><b><font color=''blue''>Instance Specification Family</font></a></b>'
zh-cn: 填写已存在的VSwitch可用区下可使用的规格;<br>通用规格:<font color='red'><b>ecs.c5.large</b></font><br>注:可用区可能不支持通用规格<br>规格详见:<a
href='https://help.aliyun.com/document_detail/25378.html' target='_blank'><b><font
color='blue'>实例规格族</font></a></b>
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
Ecs2GroupSystemDiskCategory:
Type: String
Label:
en: System Disk Type
zh-cn: 系统盘类型
Description:
en: '<font color=''blue''><b>Optional values:</b></font><br>[cloud_efficiency:
<font color=''green''>Efficient Cloud Disk</font>]<br>[cloud_ssd: <font color=''green''>SSD
Cloud Disk</font>]<br>[cloud_essd: <font color=''green''>ESSD Cloud Disk</font>]<br>[cloud:
<font color=''green''>Cloud Disk</font>]<br>[ephemeral_ssd: <font color=''green''>Local
SSD Cloud Disk</font>]'
zh-cn: '<font color=''blue''><b>可选值:</b></font><br>[cloud_efficiency: <font
color=''green''>高效云盘</font>]<br>[cloud_ssd: <font color=''green''>SSD云盘</font>]<br>[cloud_essd:
<font color=''green''>ESSD云盘</font>]<br>[cloud: <font color=''green''>普通云盘</font>]<br>[ephemeral_ssd:
<font color=''green''>本地SSD盘</font>]'
Default: cloud_efficiency
AllowedValues:
- cloud_efficiency
- cloud_ssd
- cloud
- cloud_essd
- ephemeral_ssd
Ecs2GroupSystemDiskSize:
Type: Number
Label:
en: System Disk Space
zh-cn: 系统盘空间
Description:
en: 'System disk size, range of values: 40-500, units: GB.'
zh-cn: 系统盘大小, 取值范围:[40, 500], 单位:GB。
Default: 40
Ecs2GroupMaxAmount:
Type: Number
Label:
en: Amount
zh-cn: 实例数量
Description:
en: 'Number of instances,value range: 1~100.'
zh-cn: 实例数量,取值范围:1~100。
Default: 1
MinValue: 1
MaxValue: 100
Ecs2GroupPassword:
Type: String
Label:
en: Instance Password
zh-cn: 登录密码
Description:
en: Server login password, Length 8-30, must contain three(Capital letters,
lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol
in).
zh-cn: 服务器登录密码,长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。
ConstraintDescription:
en: Length 8-30, must contain three(Capital letters, lowercase letters, numbers,
_-&:;'<>,=%`~!@#()$^*+|{}[].?/ Special symbol in).
zh-cn: 长度8-30,必须包含三项(大写字母、小写字母、数字、 _-&:;'<>,=%`~!@#()$^*+|{}[].?/ 中的特殊符号)。
AllowedPattern: '[0-9A-Za-z\_\-\&:;''<>,=%`~!@#\(\)\$\^\*\+\|\{\}\[\]\.\?\/]+$'
MinLength: '8'
MaxLength: '30'
NoEcho: true
Ecs2GroupName:
Type: String
Label:
en: Instance/Host Name Prefix
zh-cn: 实例名/主机名名称前缀
Description:
en: 'Server name prefix, such as: WP002, will eventually display [wp002-000,
wp002-001...].'
zh-cn: 服务器名称前缀,如:WP002, 最终会显示[WP002-000, WP002-001...]。
Default: WP002
DataDiskCategory:
Type: String
Label:
en: Disk Type
zh-cn: 数据盘类型
Description:
en: '<font color=''blue''><b>Optional values:</b></font><br>[cloud_efficiency:
<font color=''green''>Efficient Cloud Disk</font>]<br>[cloud_ssd: <font color=''green''>SSD
Cloud Disk</font>]<br>[cloud_essd: <font color=''green''>ESSD Cloud Disk</font>]<br>[cloud:
<font color=''green''>Cloud Disk</font>]<br>[ephemeral_ssd: <font color=''green''>Local
SSD Cloud Disk</font>]'
zh-cn: '<font color=''blue''><b>可选值:</b></font><br>[cloud_efficiency: <font
color=''green''>高效云盘</font>]<br>[cloud_ssd: <font color=''green''>SSD云盘</font>]<br>[cloud_essd:
<font color=''green''>ESSD云盘</font>]<br>[cloud: <font color=''green''>普通云盘</font>]<br>[ephemeral_ssd:
<font color=''green''>本地SSD盘</font>]'
Default: cloud_efficiency
AllowedValues:
- cloud_efficiency
- cloud_ssd
- cloud
- cloud_essd
- ephemeral_ssd
DataDiskSize:
Type: Number
Label:
en: Instance Disk Size
zh-cn: 实例数据盘大小
Description:
en: 'Instance disk size, range of values: 20-32768, units: GB.'
zh-cn: 实例数据盘大小,单位为GiB。取值范围:20~32768。
Default: 40
MinValue: 20
MaxValue: 32768
LoadBalancerSpec:
Type: String
Label:
en: Specifications
zh-cn: 规格
Description:
en: Instance specifications, see detail:</b><a href='https://www.alibabacloud.com/help/en/doc-detail/85939.html'
target='_blank'><b><font color='blue'>Performance support type</b></font></a>
zh-cn: 实例规格,详见:</b><a href='https://help.aliyun.com/document_detail/85939.html'
target='_blank'><b><font color='blue'>性能保障型</b></font></a>
Default: slb.s1.small
AllowedValues:
- slb.s1.small
- slb.s2.small
- slb.s2.medium
- slb.s3.small
- slb.s3.medium
- slb.s3.large
SlbListenerPort:
Type: Number
Label:
en: Listening Port
zh-cn: 监听端口
Description:
en: 'SLB externally provided ports.Default: 80,range of values:1~65535'
zh-cn: 前端使用的端口。默认值:80, 取值:1~65535。
Default: 80
SlbListenerBackendServerPort:
Type: Number
Label:
en: Port of The Backend Server
zh-cn: 后端服务器的端口
Description:
en: 'Ports used by load balanced backend servers. value range: 1-65535.'
zh-cn: 负载均衡后端服务器使用的端口。取值范围1-65535。
Default: 80
MinValue: 1
MaxValue: 65535
RdsDBInstanceClass:
Type: String
Label:
en: Specifications
zh-cn: 规格
Description:
en: 'Select the instance specification based on the type of database engine
and the available area support;<br>see detail: <a href=''https://www.alibabacloud.com/help/en/doc-detail/26312.html''
target=''_blank''><b><font color=''blue''>Instance specification sheet</font></b></a>'
zh-cn: 根据数据库引擎的类型和可用的区域支持选择实例规格;<br>请参见详细信息:<a href='https://help.aliyun.com/document_detail/26312.html'
target='_blank'><b><font color='blue'>实例规格表</font></b></a>
Default: rds.mysql.s3.large
AllowedValues:
- rds.mysql.s2.large
- rds.mysql.s2.xlarge
- rds.mysql.s3.large
- rds.mysql.m1.medium
- rds.mysql.c1.large
- rds.mysql.c1.xlarge
RdsDBInstanceStorage:
Type: Number
Label:
en: Storage Space
zh-cn: 存储空间
Description:
en: 'Database storage space, units: GB, per 5GB increment, value range: 20-1000.'
zh-cn: 数据库存储空间, 单位:GB, 每5GB进行递增,取值范围:20-1000。
Default: 20
MinValue: 20
MaxValue: 1000
RdsDBName:
Type: String
Label:
en: Database Name
zh-cn: 数据库(DB)名称
Description:
en: The database name created by the instance, consisting of lowercase letters,
numbers, underscores, and middle lines, beginning with letters, ending with
letters or numbers, up to 64 characters.
zh-cn: 实例创建的数据库名称,由小写字母、数字、下划线、中划线组成,以字母开头,字母或数字结尾,最多64个字符。
Default: db_wordpress
DBCharacterSetName:
Type: String
Label:
en: Database Character Set
zh-cn: 数据库字符集
Description:
en: See details: <a href= 'https://www.alibabacloud.com/help/en/doc-detail/99716.html'
target='_blank' ><b><font color='blue'>Set the table</font></b></a>
zh-cn: 详见: <a href= 'https://help.aliyun.com/document_detail/99716.html' target='_blank'
><b><font color='blue'>字符集表</font></b></a>
Default: utf8
RdsAccountName:
Type: String
Label:
en: Database Account
zh-cn: 数据库帐号
Description:
en: Maximum 16 characters,Consists of a lowercase letter, a number, an underscore,
a letter beginning, a letter or a number ending.<br><b>note: <font color='blue'>Keywords
cannot be used, e.g. admin/root</font></b>
zh-cn: 最长16个字符, 由小写字母,数字、下划线组成、字母开头,字母或数字结尾。<br><b>注: <font color='blue'>关键字不能用,如:admin/root</font></b>
Default: user_wordpress
RdsAccountPwd:
Type: String
Label:
en: Database Account 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
DBInstanceEngineAndVersion:
Type: String
Label:
en: Type And Version
zh-cn: 类型与版本号
Description:
en: Database type and version number.
zh-cn: 数据库类型与版本号。
Default: MySQL-5.6
AllowedValues:
- MySQL-5.5
- MySQL-5.6
- MySQL-5.7
- MySQL-8.0
ImageDescription:
Type: String
Label:
en: 'Custom image description '
zh-cn: 自定义镜像描述
Description:
en: 'Custom image description,Default: WP image.'
zh-cn: 自定义镜像描述。默认:WP镜像。
Default: WP镜像
ImageName:
Type: String
Label:
en: Custom Image Name
zh-cn: 自定义镜像名称
Description:
en: Custom image name.
zh-cn: 自定义镜像名称。
Default: WP镜像
Resources:
CustomImage:
Type: ALIYUN::ECS::CustomImage
Properties:
InstanceId:
Fn::Select:
- '0'
- Fn::Split:
- ','
- Ref: InstanceIds
Description:
Ref: ImageDescription
ImageName:
Fn::Join:
- '-'
- - Ref: ImageName
- Ref: ALIYUN::StackName
Tag:
- Key: best_practice
Value: 096
Ecs1Command:
Type: ALIYUN::ECS::Command
Properties:
CommandContent:
Fn::Base64Encode:
Fn::Replace:
- ros-notify:
Fn::GetAtt:
- WaitConditionHandle
- CurlCli
- Fn::Join:
- ''
- - "#!/bin/sh \n"
- db_wordpress=
- Ref: RdsDBName
- " \n"
- user_wordpress=
- Ref: RdsAccountName
- " \n"
- pwd_wordpress=
- Ref: RdsAccountPwd
- " \n"
- host=
- Fn::GetAtt:
- Rds
- InnerConnectionString
- " \n"
- "cd /var/www/html \n"
- "mv backup-wp-config.php wp-config.php \n"
- "sed -i \"s%database_name_here%$db_wordpress%\" /var/www/html/wp-config.php\
\ \n"
- "sed -i \"s%username_here%$user_wordpress%\" /var/www/html/wp-config.php\
\ \n"
- "sed -i \"s%password_here%$pwd_wordpress%\" /var/www/html/wp-config.php\
\ \n"
- "sed -i \"s%localhost%$host%\" /var/www/html/wp-config.php \n"
- "ros-notify -d \"{\\\"Data\\\" : \\\"SUCCESS\\\", \\\"Status\\\" :\
\ \\\"SUCCESS\\\"}\" \n"
Name: my-command
Type: RunShellScript
Ecs1Invocation:
Type: ALIYUN::ECS::Invocation
Properties:
InstanceIds:
Fn::Split:
- ','
- Ref: InstanceIds
CommandId:
Ref: Ecs1Command
Timed: false
DependsOn:
- Ecs1Command
Rds:
Type: ALIYUN::RDS::DBInstance
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
DBInstanceClass:
Ref: RdsDBInstanceClass
DBInstanceStorage:
Ref: RdsDBInstanceStorage
DBMappings:
- CharacterSetName:
Ref: DBCharacterSetName
DBName:
Ref: RdsDBName
Engine:
Fn::Select:
- '0'
- Fn::Split:
- '-'
- Ref: DBInstanceEngineAndVersion
EngineVersion:
Fn::Select:
- '1'
- Fn::Split:
- '-'
- Ref: DBInstanceEngineAndVersion
SecurityIPList:
Ref: RdsWhiteList
Tags:
Key: best_practice
Value: 096
Ecs2Group:
Type: ALIYUN::ECS::InstanceGroup
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
SecurityGroupId:
Ref: SecurityGroupId
ImageId:
Ref: CustomImage
AllocatePublicIP: false
DiskMappings:
- Category:
Ref: DataDiskCategory
Device: /dev/xvdb
Size:
Ref: DataDiskSize
HostName:
Fn::Join:
- ''
- - Ref: Ecs2GroupName
- -[0,3]
InstanceChargeType: PostPaid
InstanceName:
Fn::Join:
- ''
- - Ref: Ecs2GroupName
- -[0,3]
InstanceType:
Ref: Ecs2GroupInstanceType
IoOptimized: optimized
MaxAmount:
Ref: Ecs2GroupMaxAmount
Password:
Ref: Ecs2GroupPassword
SystemDiskCategory:
Ref: Ecs2GroupSystemDiskCategory
SystemDiskSize:
Ref: Ecs2GroupSystemDiskSize
Tags:
- Key: best_practice
Value: 096
UserData:
Fn::Replace:
- ros-notify:
Fn::GetAtt:
- WaitConditionHandle
- CurlCli
- Fn::Join:
- ''
- - "#!/bin/sh \n"
- db_wordpress=
- Ref: RdsDBName
- " \n"
- user_wordpress=
- Ref: RdsAccountName
- " \n"
- pwd_wordpress=
- Ref: RdsAccountPwd
- " \n"
- host=
- Fn::GetAtt:
- Rds
- InnerConnectionString
- " \n"
- "cd /var/www/html \n"
- "mv backup-wp-config.php wp-config.php \n"
- "sed -i \"s%database_name_here%$db_wordpress%\" /var/www/html/wp-config.php\
\ \n"
- "sed -i \"s%username_here%$user_wordpress%\" /var/www/html/wp-config.php\
\ \n"
- "sed -i \"s%password_here%$pwd_wordpress%\" /var/www/html/wp-config.php\
\ \n"
- "sed -i \"s%utf8%utf8%\" /var/www/html/wp-config.php \n"
- "sed -i \"s%localhost%$host%\" /var/www/html/wp-config.php \n"
- "echo \"change config finished\" > /tmp/report.log \n"
- "service httpd stop \n"
- "sleep 5 \n"
- "service httpd start \n"
- "ros-notify -d \"{\\\"Data\\\" : \\\"Success\\\", \\\"Status\\\" : \\\
\"Success\\\"}\" \n"
DependsOn:
- CustomImage
- Rds
RdsAccount:
Type: ALIYUN::RDS::Account
Properties:
AccountName:
Ref: RdsAccountName
AccountPassword:
Ref: RdsAccountPwd
AccountType: Normal
DBInstanceId:
Ref: Rds
DependsOn: Rds
RdsAccountPrivilege:
Type: ALIYUN::RDS::AccountPrivilege
Properties:
AccountName:
Ref: RdsAccountName
AccountPrivilege: ReadWrite
DBInstanceId:
Ref: Rds
DBName:
Ref: RdsDBName
DependsOn: RdsAccount
Slb:
Type: ALIYUN::SLB::LoadBalancer
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
AddressType: intranet
LoadBalancerName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
LoadBalancerSpec:
Ref: LoadBalancerSpec
PayType: PayOnDemand
Tags:
- Key: best_practice
Value: 096
SlbBackendServerAttachment:
Type: ALIYUN::SLB::BackendServerAttachment
Properties:
BackendServerList:
Fn::ListMerge:
- Fn::GetAtt:
- Ecs2Group
- InstanceIds
- Fn::Split:
- ','
- Ref: InstanceIds
BackendServerWeightList:
- 100
LoadBalancerId:
Ref: Slb
DependsOn:
- Ecs2Group
SlbListener:
Type: ALIYUN::SLB::Listener
Properties:
BackendServerPort:
Ref: SlbListenerBackendServerPort
Bandwidth: -1
HealthCheck:
HealthyThreshold: 3
HttpCode: http_2xx,http_3xx,http_4xx,http_5xx
Interval: 2
Port: 80
Timeout: 5
URI: /
UnhealthyThreshold: 3
ListenerPort:
Ref: SlbListenerPort
LoadBalancerId:
Ref: Slb
Persistence:
CookieTimeout: 60
PersistenceTimeout: 180
StickySession: 'on'
StickySessionType: insert
XForwardedFor: 'off'
Protocol: http
DependsOn: Slb
WaitConditionHandle:
Type: ALIYUN::ROS::WaitConditionHandle
Properties: {}
WaitCondition:
Type: ALIYUN::ROS::WaitCondition
Properties:
Count: 2
Handle:
Ref: WaitConditionHandle
Timeout: 900
Outputs:
Ecs2HostNames:
Description:
en: List of host names for the server
zh-cn: 服务器的主机名称列表。
Value:
Fn::GetAtt:
- Ecs2Group
- HostNames
Ecs2InstanceIds:
Description:
en: List of server instance IDs
zh-cn: 服务器实例ID列表。
Value:
Fn::GetAtt:
- Ecs2Group
- InstanceIds
Ecs2PrivateIps:
Description:
en: Server private network IP list
zh-cn: 服务器私网IP列表。
Value:
Fn::GetAtt:
- Ecs2Group
- PrivateIps
Ecs2ZoneIds:
Description:
en: The available zone ID of the server
zh-cn: 服务器的可用区ID。
Value:
Fn::GetAtt:
- Ecs2Group
- ZoneIds
RdsDBInstanceId:
Description:
en: RDS DB Instance ID
zh-cn: 数据库实例ID。
Value:
Fn::GetAtt:
- Rds
- DBInstanceId
RdsInnerConnectionString:
Description:
en: Database instance Intranet connection string
zh-cn: 数据库实例内网连接串。
Value:
Fn::GetAtt:
- Rds
- InnerConnectionString
RdsInnerIPAddress:
Description:
en: Database instance Intranet IP
zh-cn: 数据库实例内网IP。
Value:
Fn::GetAtt:
- Rds
- InnerIPAddress
RdsInnerPort:
Description:
en: Intranet port for the database instance
zh-cn: 数据库实例的内网端口。
Value:
Fn::GetAtt:
- Rds
- InnerPort
RdsNormalAccountName:
Description:
en: Database ordinary account name
zh-cn: 数据库普通账号名称
Value:
Fn::GetAtt:
- RdsAccount
- AccountName
RdsPublicConnectionString:
Description:
en: Database public network connection string
zh-cn: 数据库公网连接串。
Value:
Fn::GetAtt:
- Rds
- PublicConnectionString
RdsPublicIPAddress:
Description:
en: Database instance public network address
zh-cn: 数据库实例公网地址
Value:
Fn::GetAtt:
- Rds
- PublicIPAddress
RdsPublicPort:
Description:
en: Database instance public network port
zh-cn: 数据库实例公网端口。
Value:
Fn::GetAtt:
- Rds
- PublicPort
SLbNetworkType:
Description:
en: SLB Network Type
zh-cn: 负载均衡网络类型。
Value:
Fn::GetAtt:
- Slb
- NetworkType
SlbAddressType:
Description:
en: SLB IP Address
zh-cn: 负载均衡IP地址
Value:
Fn::GetAtt:
- Slb
- AddressType
SlbBackendServers:
Description:
en: SLB Backend Servers
zh-cn: 负载均衡后端服务器组。
Value:
Fn::GetAtt:
- SlbBackendServerAttachment
- BackendServers
SlbInstanceId:
Description:
en: SLB Instance ID
zh-cn: 负载均衡实例ID。
Value:
Fn::GetAtt:
- Slb
- LoadBalancerId
SlbIpAddress:
Description:
en: SLB IP Address
zh-cn: 负载均衡IP地址
Value:
Fn::GetAtt:
- Slb
- IpAddress
SlbListenerPortsAndProtocol:
Description:
en: SLB ports and protocols
zh-cn: 负载均衡端口和协议
Value:
Fn::GetAtt:
- SlbListener
- ListenerPortsAndProtocol
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- RdsWhiteList
- VpcId
- VSwitchId
- SecurityGroupId
- InstanceIds
Label:
default:
en: Information Required
zh-cn: 所需信息
- Parameters:
- Ecs2GroupInstanceType
- Ecs2GroupSystemDiskCategory
- Ecs2GroupSystemDiskSize
- Ecs2GroupMaxAmount
- Ecs2GroupPassword
- Ecs2GroupName
- DataDiskCategory
- DataDiskSize
Label:
default: ECS
- Parameters:
- LoadBalancerSpec
- SlbListenerPort
- SlbListenerBackendServerPort
Label:
default: SLB
- Parameters:
- RdsDBInstanceClass
- RdsDBInstanceStorage
- RdsDBName
- DBCharacterSetName
- RdsAccountName
- RdsAccountPwd
Label:
default: RDS
TemplateTags:
- acs:solution:业务上云:单机网站上云架构云化-云化部署架构