diff --git a/apigw-http-api-lambda-rds-proxy/template-rds-proxy.yaml b/apigw-http-api-lambda-rds-proxy/template-rds-proxy.yaml index 997a8164c..541980236 100644 --- a/apigw-http-api-lambda-rds-proxy/template-rds-proxy.yaml +++ b/apigw-http-api-lambda-rds-proxy/template-rds-proxy.yaml @@ -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 @@ -191,6 +191,7 @@ Resources: EnableCloudwatchLogsExports: [ error, slowquery ] BacktrackWindow: 86400 EnableIAMDatabaseAuthentication: true + DeletionProtection: false Tags: - Key: Name Value: !Sub "${AWS::StackName}-mysql-cluster" @@ -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 @@ -228,6 +231,7 @@ Resources: MonitoringRoleArn: !GetAtt roleEnhancedMonitoring.Arn PubliclyAccessible: false EnablePerformanceInsights: true + StorageEncrypted: true PerformanceInsightsRetentionPeriod: 7 Tags: - Key: Name diff --git a/apigw-http-api-lambda-rds-proxy/template.yaml b/apigw-http-api-lambda-rds-proxy/template.yaml index 309c2bcdb..b869d1fb0 100644 --- a/apigw-http-api-lambda-rds-proxy/template.yaml +++ b/apigw-http-api-lambda-rds-proxy/template.yaml @@ -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) @@ -31,7 +31,7 @@ Parameters: Globals: Function: CodeUri: ./src - Runtime: python3.9 + Runtime: python3.13 MemorySize: 128 Timeout: 30