Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions apigw-http-api-lambda-rds-proxy/template-rds-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Mappings:
ClusterSettings:
global:
dbSchema: mylab
dbVersion: 5.7.mysql_aurora.2.11.2
dbVersion: 8.0.mysql_aurora.3.04.0
dbEngine: aurora-mysql
dbFamily: aurora-mysql5.7
dbFamily: aurora-mysql8.0
port: 3306
nodeType: db.r5.large
nodeType: db.t4g.medium

Resources:
# VPC for creating database and proxy
Expand Down Expand Up @@ -191,6 +191,7 @@ Resources:
EnableCloudwatchLogsExports: [ error, slowquery ]
BacktrackWindow: 86400
EnableIAMDatabaseAuthentication: true
DeletionProtection: false
Tags:
- Key: Name
Value: !Sub "${AWS::StackName}-mysql-cluster"
Expand All @@ -210,8 +211,10 @@ Resources:
PubliclyAccessible: false
EnablePerformanceInsights: true
PerformanceInsightsRetentionPeriod: 7
StorageEncrypted: true
Tags:
- Key: Name

Value: !Sub "${AWS::StackName}-mysql-node-1"

# Reader node instance for RDS Aurora Cluster
Expand All @@ -228,6 +231,7 @@ Resources:
MonitoringRoleArn: !GetAtt roleEnhancedMonitoring.Arn
PubliclyAccessible: false
EnablePerformanceInsights: true
StorageEncrypted: true
PerformanceInsightsRetentionPeriod: 7
Tags:
- Key: Name
Expand Down
4 changes: 2 additions & 2 deletions apigw-http-api-lambda-rds-proxy/template.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AWSTemplateFormatVersion: '2010-09-09'
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Description: >
(uksb-1tthgi812) (tag:apigw-http-api-lambda-rds-proxy)
Expand Down Expand Up @@ -31,7 +31,7 @@ Parameters:
Globals:
Function:
CodeUri: ./src
Runtime: python3.9
Runtime: python3.13
MemorySize: 128
Timeout: 30

Expand Down