|
24 | 24 | }, |
25 | 25 | "Class": { |
26 | 26 | "Type": "String", |
27 | | - "Default": "db.t2.micro" |
| 27 | + "Default": "db.t3.micro" |
28 | 28 | }, |
29 | 29 | "DeletionProtection": { |
30 | 30 | "Type": "String", |
|
99 | 99 | "SecurityGroupIngress": [ |
100 | 100 | { "IpProtocol": "tcp", "FromPort": "3306", "ToPort": "3306", "CidrIp": { "Fn::ImportValue": { "Fn::Sub": "${Rack}:VpcCidr" } } } |
101 | 101 | ], |
102 | | - "VpcId": { "Fn::ImportValue": { "Fn::Sub": "${Rack}:Vpc" } } |
| 102 | + "VpcId": { "Fn::ImportValue": { "Fn::Sub": "${Rack}:Vpc" } }, |
| 103 | + "Tags": [ |
| 104 | + {{ range $key, $value := .Tags }} |
| 105 | + { "Key": "{{ $key }}", "Value": "{{ $value }}" }, |
| 106 | + {{ end }} |
| 107 | + { "Key": "Name", "Value": "{{.Name}}" } |
| 108 | + ] |
103 | 109 | } |
104 | 110 | }, |
105 | 111 | "SubnetGroup": { |
|
109 | 115 | "SubnetIds": [ |
110 | 116 | { "Fn::ImportValue": { "Fn::Sub": "${Rack}:Subnet0" } }, |
111 | 117 | { "Fn::ImportValue": { "Fn::Sub": "${Rack}:Subnet1" } } |
| 118 | + ], |
| 119 | + "Tags": [ |
| 120 | + {{ range $key, $value := .Tags }} |
| 121 | + { "Key": "{{ $key }}", "Value": "{{ $value }}" }, |
| 122 | + {{ end }} |
| 123 | + { "Key": "Name", "Value": "{{.Name}}" } |
112 | 124 | ] |
113 | 125 | } |
114 | 126 | }, |
|
145 | 157 | "StorageEncrypted": { "Fn::If": [ "NotBlankSnapshot", { "Ref": "AWS::NoValue" }, { "Ref": "Encrypted" } ] }, |
146 | 158 | "StorageType": { "Fn::If": [ "BlankIops", "gp2", "io2" ] }, |
147 | 159 | "SourceDBInstanceIdentifier": { "Fn::If": [ "IsReadReplica", { "Ref": "ReadSourceDB" }, { "Ref": "AWS::NoValue" } ] }, |
148 | | - "VPCSecurityGroups": [ { "Ref": "SecurityGroup" } ] |
| 160 | + "VPCSecurityGroups": [ { "Ref": "SecurityGroup" } ], |
| 161 | + "Tags": [ |
| 162 | + {{ range $key, $value := .Tags }} |
| 163 | + { "Key": "{{ $key }}", "Value": "{{ $value }}" }, |
| 164 | + {{ end }} |
| 165 | + { "Key": "Name", "Value": "{{.Name}}" } |
| 166 | + ] |
149 | 167 | } |
150 | 168 | } |
151 | 169 | } |
|
0 commit comments