-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-eks: do not use Python 3.7 Lambda runtime for the kubectl provider #26994
Comments
Yes, according to this https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html we probably should bump to 3.8 or 3.9 before its deprecation (Phase 1). |
We have now also been getting warning from AWS on the usage of this runtime. Would be best to have an update available before 27.11.2023.
|
Use Python 3.10 runtime for kubectl-provider. The previously used version is now EOL and will be deprecated soon in AWS Lambda. Note that while newer Python runtime versions are already available, 3.10 is the newest runtime available in all partitions (including GovCloud and CN). Closes #26994. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Use Python 3.10 runtime for kubectl-provider. The previously used version is now EOL and will be deprecated soon in AWS Lambda. Note that while newer Python runtime versions are already available, 3.10 is the newest runtime available in all partitions (including GovCloud and CN). Closes #26994. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
AWS emailed me about the deprecation of the Python 3.7 Lambda runtime. Inspecting resources, found that - even where I'm on latest CDK - still have one using 3.7 due to the kubectl provider: https://github.com/aws/aws-cdk/blob/v2.94.0/packages/aws-cdk-lib/aws-eks/lib/kubectl-provider.ts#L138
(A quick review of https://github.com/search?q=repo%3Aaws%2Faws-cdk+PYTHON_3_7+language%3ATypeScript+path%3A%2F%5Epackages%5C%2Faws-cdk-lib%5C%2F%2F&type=code suggests this is the only remaining such Lambda, hence creating an issue for this Lambda specifically, rather than a general one.)
Expected Behavior
For the CDK not to use Python 3.7 as it has an impending EOL.
Current Behavior
Uses Python 3.7.
Reproduction Steps
Deploy an EKS cluster with latest CDK (2.94.0), see it creates a Lambda for the kubectl provider handler that uses Python 3.7.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.94.0
Framework Version
No response
Node.js Version
n/a
OS
n/a
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: