Skip to content

Commit d549369

Browse files
authored
Merge pull request #2550 from Sizk/apigw-http-api-lambda-rds-proxy
Apigw http api lambda rds proxy
2 parents 830d8d0 + 2f629d5 commit d549369

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

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

Lines changed: 7 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
@@ -191,6 +191,7 @@ Resources:
191191
EnableCloudwatchLogsExports: [ error, slowquery ]
192192
BacktrackWindow: 86400
193193
EnableIAMDatabaseAuthentication: true
194+
DeletionProtection: false
194195
Tags:
195196
- Key: Name
196197
Value: !Sub "${AWS::StackName}-mysql-cluster"
@@ -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,7 @@ Resources:
228231
MonitoringRoleArn: !GetAtt roleEnhancedMonitoring.Arn
229232
PubliclyAccessible: false
230233
EnablePerformanceInsights: true
234+
StorageEncrypted: true
231235
PerformanceInsightsRetentionPeriod: 7
232236
Tags:
233237
- Key: Name

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AWSTemplateFormatVersion: '2010-09-09'
1+
AWSTemplateFormatVersion: 2010-09-09
22
Transform: AWS::Serverless-2016-10-31
33
Description: >
44
(uksb-1tthgi812) (tag:apigw-http-api-lambda-rds-proxy)
@@ -31,7 +31,7 @@ Parameters:
3131
Globals:
3232
Function:
3333
CodeUri: ./src
34-
Runtime: python3.9
34+
Runtime: python3.13
3535
MemorySize: 128
3636
Timeout: 30
3737

0 commit comments

Comments
 (0)