[FOLIO-2996] Check exposure to AWS Lambda Botocore Deprecation Created: 01/Feb/21  Updated: 23/Mar/21  Resolved: 23/Mar/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: TBD
Reporter: Peter Murray Assignee: Peter Murray
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint: DevOps Sprint 109, DevOps Sprint 107, DevOps Sprint 108, DevOps Sprint 110, DevOps Sprint 106
Development Team: FOLIO DevOps

 Description   

Received from AWS:

We are contacting you regarding actions needed on your account(s) to prevent disruption to your CloudFormation stacks. Starting on April 01, 2021, AWS Lambda will no longer support the botocore.requests library in Python runtimes [1][2]. If you are using the cfn-response module for a Lambda-backed custom resource, you must modify your Lambda function resource’s Code or Runtime property and update your stack(s) in order to get the latest version of the cfn-response module which removed its dependency on botocore.requests. If you do not update your Lambda function by April 01, 2021, you will no longer be able to create, update or delete your custom resource. If you are updating the Runtime property, please include the lambda:UpdateFunctionCode action in your IAM policy.

If you are hosting your Lambda function code from an S3 bucket, you can refer to the updated cfn-response module’s source code in our documentation [3]. For more information on how to update lambda function can be found in knowledge center [4].

Please contact AWS Support if you have any questions or concerns [5].

[1] https://aws.amazon.com/blogs/compute/upcoming-changes-to-the-python-sdk-in-aws-lambda/
[2] https://aws.amazon.com/blogs/developer/removing-the-vendored-version-of-requests-from-botocore/
[3] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html
[4] https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-cfn-response-lambda/
[5] https://aws.amazon.com/support/

Sincerely,
Amazon Web Services



 Comments   
Comment by Peter Murray [ 23/Mar/21 ]

Running the recommended command in the various regions.  The command to find these is in an AWS knowledge center article:

aws --profile indexdata cloudformation list-stacks --region us-east-1 | grep -oE 'arn:[^"]+' | while read arn; do aws --profile indexdata cloudformation list-stack-resources --stack-name $arn --region us-east-1 | grep -E '(Custom:|(::CustomResource)' | awk '{print $2}' | while read resource; do if [[ -n $resource ]]; then echo $arn; echo $resource; fi; done; done

 

  • us-east-1: none found
  • us-east-2: none found
  • us-west-1: none found
  • us-west-2: none found
Generated at Thu Feb 08 23:24:49 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.