forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-website-on-cloud-stand-alone-server.yml
700 lines (700 loc) · 23.4 KB
/
single-website-on-cloud-stand-alone-server.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 单机服务器云部署模板,适用于中小企,自动配置VPC、ECS、安全组、EIP及WordPress环境,实现基础云架构升级与弹性需求。
en: Standalone server cloud deployment template, suitable for small and medium-sized enterprises, automatically configures VPC, ECS, security group, EIP and WordPress environment to achieve basic cloud architecture upgrade and elasticity needs.
Conditions:
CreateDefaultImage:
Fn::Equals:
- centos_7
- Ref: Ecs1GroupImage
Parameters:
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:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
VSw1Zone:
Type: String
Label:
en: VSwitch Available Zone
zh-cn: 交换机可用区
Description:
en: Availability zone ID,<br><b>note: <font color='blue'>Before selecting, please
confirm that the Availability Zone supports the specification of creating
ECS resources</font></b>
zh-cn: 可用区ID,<br><b>注: <font color='blue'>选择可用区前请确认该可用区是否支持创建ECS资源的规格</font></b>
AssociationProperty: ALIYUN::ECS::Instance:ZoneId
VSw1CidrBlock:
Type: String
Label:
en: VSwitch CIDR Block
zh-cn: 交换机网段
Description:
en: Must be a sub-network segment of the proprietary network and is not occupied
by other switches.
zh-cn: 必须是所属专有网络的子网段,并且没有被其他交换机占用。
Default: 192.168.1.0/24
EipInternetChargeType:
Type: String
Label:
en: EIP Billing
zh-cn: 弹性公网IP计费方式
Description:
en: '<font color=''blue''><b>Optional values: </b></font><br>[PayByBandwidth:<font
color=''green''>Pay-by-bandwidth</font>]<br>[paybytraffic:<font color=''green''>Pay-by-data-transfer</font>]<br><font
color=''blue''></a>'
zh-cn: '<font color=''blue''><b>可选值: </b></font><br>[PayByBandwidth:<font color=''green''>按固定带宽计费</font>]<br>[paybytraffic:<font
color=''green''>按流量计费</font>]<br><font color=''blue''></a>'
Default: PayByTraffic
AllowedValues:
- PayByTraffic
- PayByBandwidth
EipBandwidth:
Type: Number
Label:
en: EIP Bandwidth
zh-cn: 弹性公网IP带宽值
Description:
en: 'Elastic public network IP bandwidth, range of values: 1~1000, Unit: Mbps.'
zh-cn: '弹性公网Ip带宽值,取值范围: 1~1000,单位: Mbps。'
Default: 5
MinValue: 1
MaxValue: 1000
Ecs1GroupInstanceType:
Type: String
Label:
en: Instance Type
zh-cn: 实例规格
Description:
en: 'Fill in the specifications that can be used under the 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: 填写可用区下可使用的规格;<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
AssociationPropertyMetadata:
ZoneId: VSw1Zone
Ecs1GroupSystemDiskCategory:
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
Ecs1GroupSystemDiskSize:
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
Ecs1GroupMaxAmount:
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
Ecs1GroupImage:
Type: String
Label:
en: Image
zh-cn: 镜像
Description:
en: Image ID, use centos_7 the app is installed, and other images are not installed,
see detail:<b><a href='https://www.alibabacloud.com/help/en/doc-detail/112977.html'
target='_blank'><font color='blue'>Find the mirror</font></a></b>
zh-cn: 镜像ID,使用centos_7会安装相关应用,其他镜像不安装,详见:<b><a href='https://help.aliyun.com/document_detail/112977.html'
target='_blank'><font color='blue'>查找镜像</font></a></b>
Default: centos_7
Ecs1GroupName:
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: WP001
Ecs1GroupPassword:
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
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: Data Disk Space
zh-cn: 数据盘空间
Description:
en: 'Data disk space, range of values: 20-32768, units: GB.'
zh-cn: 实例数据盘大小,单位为GiB。取值范围:20~32768。
Default: 40
MinValue: 20
MaxValue: 32768
DBRootPassword:
Type: String
Label:
en: Root Account Password
zh-cn: 安装数据库root账户密码
Description:
en: 'Installed database Root account password,length 8-32 characters, can contain
size letters, Numbers and special symbols (including: !@#$%^&*-+=_).'
zh-cn: 安装的数据库Root账户密码,长度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
DBWordPress:
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
UserWordpress:
Type: String
Label:
en: User of Database
zh-cn: 数据库(db)的用户
Description:
en: 'User of database (db) '
zh-cn: 数据库(DB)的用户
Default: user_wordpress
PWDWordPress:
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
Resources:
Eip:
Type: ALIYUN::VPC::EIP
Properties:
Bandwidth:
Ref: EipBandwidth
InternetChargeType:
Ref: EipInternetChargeType
Metadata:
ALIYUN::ROS::Designer:
id: 622dc741-09bf-4c7b-af28-dfaf9b935128
EIPBind:
Type: ALIYUN::VPC::EIPAssociation
Properties:
InstanceId:
Fn::Select:
- '0'
- Fn::GetAtt:
- EcsInstanceGroup
- InstanceIds
AllocationId:
Ref: Eip
DependsOn: Eip
Metadata:
ALIYUN::ROS::Designer:
id: 944c33cf-4987-4425-9a05-de31e512b540
Vpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock:
Ref: VpcCidrBlock
VpcName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
Metadata:
ALIYUN::ROS::Designer:
id: ee33e0ad-54c6-4fd1-b295-a4b517c4709b
SecurityGroup:
Type: ALIYUN::ECS::SecurityGroup
Properties:
VpcId:
Ref: Vpc
SecurityGroupIngress:
- IpProtocol: tcp
NicType: intranet
PortRange: 22/22
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: tcp
NicType: intranet
PortRange: 80/80
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: tcp
NicType: intranet
PortRange: 443/443
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: icmp
NicType: intranet
PortRange: -1/-1
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: tcp
NicType: intranet
PortRange: 3389/3389
Priority: 1
SourceCidrIp: 0.0.0.0/0
SecurityGroupName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
Tags:
- Key: best_practice
Value: 096
DependsOn: Vpc
Metadata:
ALIYUN::ROS::Designer:
id: 17c0c248-a1a7-430d-9979-20589bca9c93
VSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: VSw1Zone
VpcId:
Ref: Vpc
CidrBlock:
Ref: VSw1CidrBlock
VSwitchName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
DependsOn: Vpc
Metadata:
ALIYUN::ROS::Designer:
id: d2b9fd39-d5df-4e27-9820-ab07d5e33566
EcsInstanceGroup:
Type: ALIYUN::ECS::InstanceGroup
Properties:
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
SecurityGroupId:
Ref: SecurityGroup
ImageId:
Ref: Ecs1GroupImage
AllocatePublicIP: false
DiskMappings:
- Category:
Ref: DataDiskCategory
Device: /dev/xvdb
Size:
Ref: DataDiskSize
HostName:
Fn::Join:
- ''
- - Ref: Ecs1GroupName
- -[0,3]
InstanceChargeType: PostPaid
InstanceName:
Fn::Join:
- ''
- - Ref: Ecs1GroupName
- -[0,3]
InstanceType:
Ref: Ecs1GroupInstanceType
IoOptimized: optimized
MaxAmount:
Ref: Ecs1GroupMaxAmount
Password:
Ref: Ecs1GroupPassword
SystemDiskCategory:
Ref: Ecs1GroupSystemDiskCategory
SystemDiskSize:
Ref: Ecs1GroupSystemDiskSize
Tags:
- Key: best_practice
Value: 096
UserData:
Fn::If:
- CreateDefaultImage
- Fn::Replace:
- ros-notify:
Fn::GetAtt:
- WaitConditionHandle
- CurlCli
- Fn::Join:
- ''
- - "#!/bin/sh \n"
- dbrootpassword=
- Ref: DBRootPassword
- " \n"
- db_wordpress=
- Ref: DBWordPress
- " \n"
- user_wordpress=
- Ref: UserWordpress
- " \n"
- pwd_wordpress=
- Ref: PWDWordPress
- " \n"
- "sleep 180 \n"
- "wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm\
\ \n"
- "rpm -ivh mysql-community-release-el6-5.noarch.rpm \n"
- "yum install mysql-community-server -y \n"
- "service mysqld start \n"
- "mysqladmin -u root password $dbrootpassword \n"
- "echo \"create database $db_wordpress character set utf8 collate utf8_bin;\"\
\ > ./test.sql \n"
- "echo \"grant all on $db_wordpress.* to $user_wordpress@'localhost'\
\ identified by '$pwd_wordpress';\" >> ./test.sql \n"
- "echo \"grant all on $db_wordpress.* to $user_wordpress@'%' identified\
\ by '$pwd_wordpress';\" >> ./test.sql \n"
- "mysql -u root -p$dbrootpassword < ./test.sql \n"
- "WebRootPath='/var/www/html' \n"
- "ApacheIndex='Options Indexes FollowSymLinks' \n"
- "ApacheIndexReplace='Options FollowSymLinks' \n"
- "mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup\
\ \n"
- "wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo\
\ \n"
- "yum makecache \n"
- "yum install -y unzip zip \n"
- "yum install -y curl httpd mysql-server php56 php56-php-mysql \n"
- "#yum install -y php56-php-gd php56-php-imap php56-php-ldap php56-php-odbc\
\ php56-php-xmlrpc \n"
- "rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm \n"
- "rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm\
\ \n"
- "yum install -y php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64\
\ php56w-gd.x86_64 php56w-imap.x86_64 php56w-ldap.x86_64 php56w-mysql.x86_64\
\ php56w-pdo.x86_64 php56w-odbc.x86_64 php56w-process.x86_64 php56w-xml.x86_64\
\ php56w-xmlrpc.x86_64 \n"
- "systemctl restart httpd \n"
- "chkconfig httpd on \n"
- "# Download WordPress \n"
- "wget https://ros-template-resources.oss-cn-beijing.aliyuncs.com/WordPress/WordPress.zip\
\ \n"
- "unzip WordPress.zip \n"
- "mv WordPress-master wordpress \n"
- "cp wordpress/wp-config-sample.php wordpress/backup-wp-config.php\
\ \n"
- "sed -i \"s/database_name_here/$db_wordpress/\" wordpress/wp-config-sample.php\
\ \n"
- "sed -i \"s/username_here/$user_wordpress/\" wordpress/wp-config-sample.php\
\ \n"
- "sed -i \"s/password_here/$pwd_wordpress/\" wordpress/wp-config-sample.php\
\ \n"
- "sed -i \"s/utf8/utf8/\" wordpress/wp-config-sample.php \n"
- "#sed -i \"s/localhost/localhost/\" wordpress/wp-config-sample.php\
\ \n"
- "mv wordpress/wp-config-sample.php wordpress/wp-config.php \n"
- "cp -a wordpress/* $WebRootPath \n"
- "rm -rf wordpress* \n"
- "systemctl stop httpd \n"
- "usermod -d $WebRootPath apache &>/dev/null \n"
- "chown apache:apache -R $WebRootPath \n"
- "sed -i \"s/$ApacheIndex/$ApacheIndexReplace/\" /etc/httpd/conf/httpd.conf\
\ \n"
- "echo \"install wordPress finished\" > /tmp/report.log \n"
- "service httpd stop&&service httpd start \n"
- "ros-notify -d \"{\\\"Data\\\" : \\\"SUCCESS\\\", \\\"Status\\\" :\
\ \\\"SUCCESS\\\"}\" \n"
- Ref: ALIYUN::NoValue
DependsOn: VSwitch
Metadata:
ALIYUN::ROS::Designer:
id: 8ef52682-2117-4ed2-a4de-ace62ebc99e8
WaitConditionHandle:
Type: ALIYUN::ROS::WaitConditionHandle
Condition: CreateDefaultImage
Properties: {}
Metadata:
ALIYUN::ROS::Designer:
id: 188424e1-7767-4324-bd18-e8a0f7c652b1
WaitCondition:
Type: ALIYUN::ROS::WaitCondition
Condition: CreateDefaultImage
Properties:
Count: 1
Handle:
Ref: WaitConditionHandle
Timeout: 3600
Metadata:
ALIYUN::ROS::Designer:
id: ec093ab3-25f4-4d04-80f5-b5b8dcf24d9b
Outputs:
Ecs1HostNames:
Description:
en: List of cloud server host names.
zh-cn: 云服务器主机名称列表。
Value:
Fn::GetAtt:
- EcsInstanceGroup
- HostNames
Ecs1InstanceIds:
Description:
en: Cloud server ID list.
zh-cn: 云服务器ID列表。
Value:
Fn::GetAtt:
- EcsInstanceGroup
- InstanceIds
Ecs1PrivateIps:
Description:
en: Cloud server private network IP list.
zh-cn: 云服务器私网IP列表。
Value:
Fn::GetAtt:
- EcsInstanceGroup
- PrivateIps
Ecs1PublicIps:
Description:
en: Cloud server public network IP list
zh-cn: 云服务器公网IP列表。
Value:
Fn::GetAtt:
- EcsInstanceGroup
- PublicIps
EipIp:
Description:
en: Eip IP (binding to cloud server).
zh-cn: 弹性公网IP(绑定云服务器)。
Value:
Fn::GetAtt:
- Eip
- EipAddress
SgId:
Description:
en: Security group ID
zh-cn: 安全组ID
Value:
Fn::GetAtt:
- SecurityGroup
- SecurityGroupId
VSwitchId:
Description:
en: VSwitch instance ID
zh-cn: 交换机实例ID
Value:
Fn::GetAtt:
- VSwitch
- VSwitchId
VpcId:
Description:
en: 虚拟专有网络实例ID。
zh-cn: Virtual proprietary network instance ID.
Value:
Fn::GetAtt:
- Vpc
- VpcId
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- VpcCidrBlock
- VSw1Zone
- VSw1CidrBlock
- EipInternetChargeType
- EipBandwidth
Label:
default:
en: VPC
zh-cn: 专有网络
- Parameters:
- Ecs1GroupInstanceType
- Ecs1GroupSystemDiskCategory
- Ecs1GroupSystemDiskSize
- Ecs1GroupMaxAmount
- Ecs1GroupImage
- Ecs1GroupName
- Ecs1GroupPassword
- DataDiskCategory
- DataDiskSize
- DBRootPassword
- DBWordPress
- UserWordpress
- PWDWordPress
Label:
default:
en: ECS
zh-cn: 云服务器
TemplateTags:
- acs:solution:业务上云:单机网站上云架构云化-单机服务器部署
ALIYUN::ROS::Designer:
17c0c248-a1a7-430d-9979-20589bca9c93:
position:
x: 313
y: 293
size:
height: 60
width: 60
z: 1
188424e1-7767-4324-bd18-e8a0f7c652b1:
position:
x: 142
y: 289
size:
height: 60
width: 60
z: 0
54b52c3b-e250-4009-95fd-192e48b149d0:
source:
id: ec093ab3-25f4-4d04-80f5-b5b8dcf24d9b
target:
id: 188424e1-7767-4324-bd18-e8a0f7c652b1
z: 1
5b05a737-0f7f-4507-a14a-77958a23677b:
source:
id: 944c33cf-4987-4425-9a05-de31e512b540
target:
id: 8ef52682-2117-4ed2-a4de-ace62ebc99e8
z: 1
622dc741-09bf-4c7b-af28-dfaf9b935128:
position:
x: 478
y: 293
size:
height: 60
width: 60
z: 0
76d75951-2fa8-4699-b77f-89a93711a059:
source:
id: 8ef52682-2117-4ed2-a4de-ace62ebc99e8
target:
id: 17c0c248-a1a7-430d-9979-20589bca9c93
z: 1
8ef52682-2117-4ed2-a4de-ace62ebc99e8:
position:
x: 313
y: 178
size:
height: 60
width: 60
z: 2
944c33cf-4987-4425-9a05-de31e512b540:
position:
x: 478
y: 178
size:
height: 60
width: 60
z: 0
c09aabca-fe7f-455b-8971-6be02ee81bc2:
source:
id: 944c33cf-4987-4425-9a05-de31e512b540
target:
id: 622dc741-09bf-4c7b-af28-dfaf9b935128
z: 1
d2b9fd39-d5df-4e27-9820-ab07d5e33566:
embeds:
- 8ef52682-2117-4ed2-a4de-ace62ebc99e8
position:
x: 267
y: 134
size:
height: 148
width: 151
z: 1
ec093ab3-25f4-4d04-80f5-b5b8dcf24d9b:
position:
x: 142
y: 172
size:
height: 60
width: 60
z: 0
ee33e0ad-54c6-4fd1-b295-a4b517c4709b:
embeds:
- 17c0c248-a1a7-430d-9979-20589bca9c93
- d2b9fd39-d5df-4e27-9820-ab07d5e33566
position:
x: 239
y: 106
size:
height: 283
width: 207
z: 0