Skip to content

Commit 78d7e5a

Browse files
author
Jon Loinaz
committed
- upgrade cluster to newer lts of mysql.
- use cheaper and graviton instance type by default.
1 parent df63f6d commit 78d7e5a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

apigw-http-api-lambda-rds-proxy/template-rds-proxy.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Mappings:
1313
ClusterSettings:
1414
global:
1515
dbSchema: mylab
16-
dbVersion: 5.7.mysql_aurora.2.11.2
16+
dbVersion: 8.0.mysql_aurora.3.04.0
1717
dbEngine: aurora-mysql
18-
dbFamily: aurora-mysql5.7
18+
dbFamily: aurora-mysql8.0
1919
port: 3306
20-
nodeType: db.r5.large
20+
nodeType: db.t4g.medium
2121

2222
Resources:
2323
# VPC for creating database and proxy
@@ -199,6 +199,7 @@ Resources:
199199
dbNode1:
200200
Type: "AWS::RDS::DBInstance"
201201
Properties:
202+
DeletionProtection: false
202203
DBClusterIdentifier: !Ref dbCluster
203204
DBInstanceIdentifier: !Sub "${AWS::StackName}-mysql-node-1"
204205
CopyTagsToSnapshot: true
@@ -210,8 +211,10 @@ Resources:
210211
PubliclyAccessible: false
211212
EnablePerformanceInsights: true
212213
PerformanceInsightsRetentionPeriod: 7
214+
StorageEncrypted: true
213215
Tags:
214216
- Key: Name
217+
215218
Value: !Sub "${AWS::StackName}-mysql-node-1"
216219

217220
# Reader node instance for RDS Aurora Cluster
@@ -228,6 +231,8 @@ Resources:
228231
MonitoringRoleArn: !GetAtt roleEnhancedMonitoring.Arn
229232
PubliclyAccessible: false
230233
EnablePerformanceInsights: true
234+
DeletionProtection: false
235+
StorageEncrypted: true
231236
PerformanceInsightsRetentionPeriod: 7
232237
Tags:
233238
- Key: Name

0 commit comments

Comments
 (0)