Skip to content

Commit

Permalink
Merge pull request #2550 from Sizk/apigw-http-api-lambda-rds-proxy
Browse files Browse the repository at this point in the history
Apigw http api lambda rds proxy
  • Loading branch information
julianwood authored Jan 27, 2025
2 parents 830d8d0 + 2f629d5 commit d549369
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
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

0 comments on commit d549369

Please sign in to comment.