Skip to content

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

@its-felix

Description

@its-felix

Describe the feature

The instance-drain-hook Lambda uses the Python 3.9 Runtime (https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-ecs/lib/drain-hook/instance-drain-hook.ts#L65) which is being deprecated on Dec 15, 2025 (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).

Use Case

Updating before its too late

Proposed Solution

Update to latest Python Runtime

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.200.1

AWS CDK CLI version

latest

Environment details (OS name and version, etc.)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecsRelated to Amazon Elastic Containerfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions