-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(ecs): InstanceDrainHook is still using EOL python runtime #20085
Description
Describe the feature
From AWS:
We are ending support for Python 3.6 in AWS Lambda. This follows Python 3.6 End-Of-Life (EOL) reached on December 23, 2021 [1].
As described in the Lambda runtime support policy [2], end of support for language runtimes in Lambda happens in two stages. Starting July 18, 2022, Lambda will no longer apply security patches and other updates to the Python 3.6 runtime used by Lambda functions, and functions using Python 3.6 will no longer be eligible for technical support. In addition, you will no longer be able to create new Lambda functions using the Python 3.6 runtime. Starting August 17, 2022, you will no longer be able to update existing functions using the Python 3.6 runtime.
Construct InstanceDrainHook (used ECS cluster construcs) is using this runtime:
| runtime: lambda.Runtime.PYTHON_3_6, |
Use Case
We would like to deploy ECS services via CDK and not use deprecated python runtimes
Proposed Solution
Switch this construct's lambda to python3.9
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.21.1
Environment details (OS name and version, etc.)
N/A