-
Notifications
You must be signed in to change notification settings - Fork 35
/
quickly-build-large-screen.yml
139 lines (139 loc) · 4.23 KB
/
quickly-build-large-screen.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: Quickly build a large screen of enterprise management.
zh-cn: 快速搭建企业经营大屏。
Parameters:
CommonName:
Type: String
Default: example-DataV
ZoneId:
Type: String
Label:
en: Zone ID
zh-cn: 可用区ID
Description:
en: The available zone ID.
or not.
zh-cn: 可用区ID。
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
DBInstanceClass:
Type: String
Label:
en: Instance Class
zh-cn: 实例类型
Description:
en: Database instance type. Refer the RDS database instance type.<a href='https://www.alibabacloud.com/help/doc-detail/26312.htm'
target='_blank'>View RDS resources type</a>
zh-cn: '数据库实例类型, <br>详见: <a href=''https://help.aliyun.com/document_detail/26312.html''
target=''_blank''><b><font color=''blue''>实例规格表</font></b></a>.'
AssociationProperty: ALIYUN::RDS::Instance::InstanceType
AssociationPropertyMetadata:
Engine: MySQL
Category: Basic
EngineVersion: '8.0'
ZoneId: ${ZoneId}
CommodityCode: bards
Default: rds.mysql.s1.small
AccountName:
Type: String
Label:
en: Database Account
zh-cn: 数据库账号
Description:
en: The account name must be 2 to 32 characters in length and can contain lowercase
letters, digits, and underscores (_). It must start with a letter and end
with a letter or digit.
zh-cn: 由小写字母、数字、下划线(_)组成,以字母开头,以字母或数字结尾,最多32个字符。
AllowedPattern: '^(?!root$)[a-z][a-z0-9_]{0,30}[a-z0-9]$'
Default: user_test
DBPassword:
NoEcho: true
Type: String
Description:
en: >-
The password is 8 to 30 characters in length and must contain at least three types: uppercase letters, lowercase letters, digits, and special symbols. The name contains 8 to 32 characters. Special characters include! @ # $% ^ & * () _ + - =
zh-cn: >-
数据库账号密码,长度8-30,必须包含三种及以上类型:大写字母、小写字母、数字、特殊符号。长度为8~32位。特殊字符包括! @ # $ % ^ & * () _ + - =
Label:
en: MySQL Instance Password
zh-cn: MySQL数据库密码
ConstraintDescription:
en: >-
Length 8-30, must contain three(Capital letters, lowercase letters,
numbers, @ # $% ^ & * () _ + - = Special symbol in)
zh-cn: '长度8-30,必须包含三项(大写字母、小写字母、数字、特殊符号。长度为8~32位。特殊字符包括! @ # $ % ^ & * () _ + - =)'
AssociationProperty: 'ALIYUN::RDS::Instance::AccountPassword'
Resources:
Vpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock: 192.168.0.0/16
VpcName:
Fn::Sub: ${CommonName}-vpc
VSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: Vpc
CidrBlock: 192.168.0.0/24
VSwitchName:
Fn::Sub: ${CommonName}-vsw
Database:
Type: ALIYUN::RDS::DBInstance
Properties:
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
DBInstanceClass:
Ref: DBInstanceClass
DBInstanceNetType: Intranet
DBInstanceStorage: 40
Engine: MySQL
EngineVersion: '8.0'
DBMappings:
- CharacterSetName: utf8
DBName: mysqltest
SecurityIPList: 192.168.0.0/16
Account:
Type: ALIYUN::RDS::Account
Properties:
AccountName:
Ref: AccountName
AccountType: Super
AccountPassword:
Ref: DBPassword
DBInstanceId:
Ref: Database
Outputs:
DBInstanceId:
Value:
Fn::GetAtt:
- Database
- DBInstanceId
InnerConnectionString:
Value:
Fn::GetAtt:
- Database
- InnerConnectionString
InnerPort:
Value:
Fn::GetAtt:
- Database
- InnerPort
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ZoneId
- DBInstanceClass
- AccountName
- DBPassword
Label:
default: RDS
TemplateTags:
- acs:technical-solution:data-analysis:快速搭建企业经营大屏
Hidden:
- CommonName