From 200f2dc28d3f389d863dd3ccbd0ba3f0b8f710a9 Mon Sep 17 00:00:00 2001 From: Simon Kok Date: Fri, 17 May 2024 00:14:53 +0200 Subject: [PATCH] Fix account management lambdas in v3.2 **Why?** Issue: #728 With the latest Python runtime update provided by AWS Lambda, the boto3 dependencies were upgraded. However, with the account management Lambda functions, the `aws-xray-sdk` requires botocore v1.29.54. This version is incompatible with the latest boto3 package that was added to the Lambda function runtime. Hence, it returned an error as described in 728. **What?** To ensure compatible versions are installed, ADF's lambda functions should set the specific version of boto3 in its requirements.txt file if they rely on that. --- src/lambda_codebase/account_processing/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lambda_codebase/account_processing/requirements.txt b/src/lambda_codebase/account_processing/requirements.txt index e51b024d3..db839a47b 100644 --- a/src/lambda_codebase/account_processing/requirements.txt +++ b/src/lambda_codebase/account_processing/requirements.txt @@ -1,3 +1,5 @@ aws-xray-sdk==2.11.0 +boto3==1.26.48 +botocore==1.29.48 pyyaml>=5.4.1 wrapt==1.14.1 # https://github.com/aws/aws-lambda-builders/issues/302