From 1cab58b04ca1fe15550c9ad0700429b52880bb78 Mon Sep 17 00:00:00 2001 From: Lateef Koshemani Date: Fri, 7 Jun 2024 19:17:07 +0200 Subject: [PATCH 1/3] upgrade golang lambda runtime --- template.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template.yaml b/template.yaml index c5ee95f..cfff48f 100644 --- a/template.yaml +++ b/template.yaml @@ -77,7 +77,7 @@ Parameters: Globals: Function: - Runtime: go1.x + Runtime: provided.al2023 Conditions: LambdaTriggerRate1Minute: !Equals [ !Ref LambdaTriggerRate, 1 ] @@ -87,6 +87,8 @@ Resources: RdsAuditLogsS3Function: Type: AWS::Serverless::Function DependsOn: RdsAuditLogsS3FunctionLogGroup + Metadata: + BuildMethod: go1.x Properties: FunctionName: !Ref Name Description: !Sub "Lambda function for RDS audit log ingestion of instance ${RdsInstanceIdentifier} to S3" From c68892dc61db9cfca423cfd8264b8acaa046d675 Mon Sep 17 00:00:00 2001 From: Lateef Koshemani Date: Fri, 7 Jun 2024 19:17:23 +0200 Subject: [PATCH 2/3] upgrade python dependencies --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1bfcfe3..46b42d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -aws-sam-cli==1.9.0 -cfn-lint==0.40.0 \ No newline at end of file +aws-sam-cli==1.118.0 +cfn-lint==0.87.4 From 93e33efd0a421ee07c55f2f35c4349ede75c5ae4 Mon Sep 17 00:00:00 2001 From: Lateef Koshemani Date: Fri, 7 Jun 2024 19:32:31 +0200 Subject: [PATCH 3/3] change Handler type to bootstrap --- template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.yaml b/template.yaml index cfff48f..5639ebe 100644 --- a/template.yaml +++ b/template.yaml @@ -93,7 +93,7 @@ Resources: FunctionName: !Ref Name Description: !Sub "Lambda function for RDS audit log ingestion of instance ${RdsInstanceIdentifier} to S3" CodeUri: lambda/ - Handler: lambda + Handler: bootstrap MemorySize: !Ref LambdaMemorySize Timeout: !Ref LambdaTimeout Events: