Starting on December 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 December 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 the AWS documentation here [3]. For more information on how to update the AWS CloudFormation cfn-response
module, see the AWS knowledge center article here [4].
Please contact AWS Support if you have any questions or concerns [5].
Reference Links
- https://aws.amazon.com/blogs/compute/upcoming-changes-to-the-python-sdk-in-aws-lambda/
- https://aws.amazon.com/blogs/developer/removing-the-vendored-version-of-requests-from-botocore/
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html
- https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-cfn-response-lambda/
- https://aws.amazon.com/support/