Skip to content

Conversation

@Abogical
Copy link
Member

Description copied from #34639

Issue #34634

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)
  • 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


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added feature-request A feature should be added or improved. p2 labels Jul 29, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team July 29, 2025 14:15
@github-actions github-actions bot added the valued-contributor [Pilot] contributed between 6-12 PRs to the CDK label Jul 29, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 29, 2025
@Abogical Abogical added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jul 29, 2025
@its-felix
Copy link

Thanks for taking over, and sorry, I didn't have much time recently to follow up on your change requests.

Greetings to AWS Berlin :)

@leonmk-aws leonmk-aws self-assigned this Jul 31, 2025
@leonmk-aws
Copy link
Contributor

leonmk-aws commented Jul 31, 2025

@Abogical Have you checked that Python 3.13 is available in ADC regions ?

@Abogical
Copy link
Member Author

@leonmk-aws

@Abogical Have you checked that Python 3.13 is available in ADC regions ?

According to https://aws.amazon.com/about-aws/whats-new/2024/11/aws-lambda-support-python-313 :

The Python 3.13 runtime is available in all Regions where Lambda is available, including China and the AWS GovCloud (US) Regions.

@leonmk-aws
Copy link
Contributor

@Abogical what about eu isolated regions ?

@leonmk-aws leonmk-aws removed their assignment Jul 31, 2025
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: dee411a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@leonmk-aws leonmk-aws self-assigned this Aug 21, 2025
@leonmk-aws leonmk-aws changed the title chore(ecs): update instance-drain-hook lambda runtime to python 3.13 feat(ecs): update instance-drain-hook lambda runtime to python 3.13 Aug 21, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@leonmk-aws leonmk-aws changed the title feat(ecs): update instance-drain-hook lambda runtime to python 3.13 chore(ecs): update instance-drain-hook lambda runtime to python 3.13 Aug 21, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review August 21, 2025 13:04

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@mergify
Copy link
Contributor

mergify bot commented Aug 21, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Aug 21, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 22a5ff8 into main Aug 21, 2025
17 of 18 checks passed
@mergify mergify bot deleted the 34634-AwsEcsDrainHookLambdaRuntime branch August 21, 2025 13:38
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. feature-request A feature should be added or improved. p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member valued-contributor [Pilot] contributed between 6-12 PRs to the CDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws-ecs: Update Lambda Runtime Version for instance-drain-hook.ts

4 participants