-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRDS_with_DBParam.json
55 lines (55 loc) · 2.08 KB
/
RDS_with_DBParam.json
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
{
"Description": "AWS CloudFormation Sample Template RDS_with_DBParameterGroup: Sample template showing how to create an Amazon RDS Database Instance with a DBParameterGroup.**WARNING** This template creates an Amazon Relational Database Service database instance. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters": {
"DBPassword": {
"AllowedPattern": "[a-zA-Z0-9]*",
"ConstraintDescription": "must contain only alphanumeric characters.",
"Description": "The database admin account password",
"MaxLength": "41",
"MinLength": "1",
"NoEcho": true,
"Type": "String"
},
"DBUser": {
"AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*",
"ConstraintDescription": "must begin with a letter and contain only alphanumeric characters.",
"Description": "The database admin account username",
"MaxLength": "16",
"MinLength": "1",
"NoEcho": true,
"Type": "String"
}
},
"Resources": {
"MyDB": {
"Properties": {
"AllocatedStorage": "5",
"DBInstanceClass": "db.m1.small",
"DBParameterGroupName": {
"Ref": "MyRDSParamGroup"
},
"Engine": "MySQL",
"EngineVersion": "5.5",
"MasterUserPassword": {
"Ref": "DBPassword"
},
"MasterUsername": {
"Ref": "DBUser"
}
},
"Type": "AWS::RDS::DBInstance"
},
"MyRDSParamGroup": {
"Properties": {
"Description": "CloudFormation Sample Database Parameter Group",
"Family": "MySQL5.5",
"Parameters": {
"autocommit": "1",
"general_log": "1",
"old_passwords": "0"
}
},
"Type": "AWS::RDS::DBParameterGroup"
}
}
}