aws-cdk
aws-cdk copied to clipboard
chore(ecs): update instance-drain-hook lambda runtime to python 3.13 (closes #34634)
Issue # (if applicable)
Closes #34634.
Reason for this change
The old Lambda Runtime Python 3.9 is being deprecated
Description of changes
- Update Lambda Runtime to Python 3.13 (newest currently supported)
- Python 3.13 is supported in All Regions (https://aws.amazon.com/about-aws/whats-new/2024/11/aws-lambda-support-python-313)
- The function code is very basic. All syntax and standard library functions used by the code continue to work in 3.13
- Fixed a minor logging bug in the lambda code
- Added Runtime-Property assertion to unit tests
- Updated Runtime-Property assertion in integ tests
Describe any new or updated permissions being added
None
Description of how you validated changes
(cd packages/aws-cdk-lib && yarn test aws-ecs)
Checklist
- [x] My code adheres to the CONTRIBUTING GUIDE and DESIGN GUIDELINES
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
AWS CodeBuild CI Report
- CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
- Commit ID: 029c12508662548364dbb51d3b8a944abcfc1477
- Result: FAILED
- Build Logs (available for 30 days)
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository
Closed in favour of #35103
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.