Repository navigation
Expand file tree
/
Copy pathRDS-MySQL-params_pon.yaml
More file actions
61 lines (54 loc) · 1.77 KB
/
Copy pathRDS-MySQL-params_pon.yaml
File metadata and controls
61 lines (54 loc) · 1.77 KB
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
AWSTemplateFormatVersion: "2010-09-09"
Description: CloudFormation template to create RDS MySQL 8.0 Parameter Group and Option Group
Parameters:
DBFamily:
Description: MySQL DB Parameter Group Family
Type: String
Default: mysql8.0
OptionGroupName:
Description: The name of the Option Group
Type: String
Default: my-mysql-option-group
Resources:
MyDBParameterGroup:
Type: AWS::RDS::DBParameterGroup
Properties:
Description: MySQL 8.0 Parameter Group
Family: !Ref DBFamily
Parameters:
max_connections: "100"
innodb_buffer_pool_size: "3221225472"
innodb_log_file_size: "536870912"
innodb_flush_log_at_trx_commit: "2"
table_open_cache: "512"
tmp_table_size: "67108864"
max_allowed_packet: "67108864"
max_execution_time : "30000"
net_write_timeout: "120"
net_read_timeout : "120"
sort_buffer_size: "3145728"
join_buffer_size: "3145728"
innodb_io_capacity: "200"
innodb_read_io_threads: "4"
innodb_write_io_threads: "4"
log_bin_trust_function_creators: "1"
slow_query_log: "1"
long_query_time: "2"
character_set_server : "utf8mb4"
collation_server : "utf8mb4_0900_ai_ci"
time_zone : "Asia/Tokyo"
MyDBOptionGroup:
Type: AWS::RDS::OptionGroup
Properties:
EngineName: mysql
MajorEngineVersion: "8.0"
OptionGroupDescription: MySQL 8.0 Option Group
OptionConfigurations:
- OptionName: MARIADB_AUDIT_PLUGIN
Outputs:
ParameterGroupName:
Description: The name of the created MySQL Parameter Group
Value: !Ref MyDBParameterGroup
OptionGroupName:
Description: The name of the created MySQL Option Group
Value: !Ref MyDBOptionGroup