-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. #30145
Comments
@abdullahodibat Good morning. Could you please share the minimal reproducible code solution to reproduce the issue (along with I do see that you are using AWS CDK v1 packages. AWS CDK v1 has reached End-of-Support on 2023-06-01. The v1 packages are no longer being updated, and users should migrate to AWS CDK v2. For more information on how to migrate, see https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html. Thanks |
@ashishdhingra Thanks alot for your hint. i totally missed the V2 thing, cdk v2 is another respository. i will upgrade :) Regards, |
It worked perfectly locally after i upgraded to cdk 2, but its it fails on circle ci, although i updated cdk there too.
Thanks in advance :) |
Ok working now. The cdk cloudwatch Metric Function parameter was changed to |
@abdullahodibat Thanks for the confirmation. Glad that it's working for you now. |
|
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. |
Describe the bug
Hello,
please note this is a similar issue to: #21470
i am unable to create cloudformation stacks anymore. because of these errors:
Resource handler returned message: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: b575bb11-b5c9-45dc-8d9d-198a6fa62166)
The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 37f11f2e-679b-4234-abd7-ed4a01afe84b)" (RequestToken: 109b8402-1a62-b4a4-633d-736a5a14647d, HandlerErrorCode: InvalidRequest)
for some reason some reason the resources below are being created with python 3.7.
Although the cdk libraries versions are the latest.
Expected Behavior
I should be able to create stacks without errors.
Current Behavior
The cloudformation stack failes with these errors:
Resource handler returned message: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: b575bb11-b5c9-45dc-8d9d-198a6fa62166)
The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 37f11f2e-679b-4234-abd7-ed4a01afe84b)" (RequestToken: 109b8402-1a62-b4a4-633d-736a5a14647d, HandlerErrorCode: InvalidRequest)
Reproduction Steps
These are the aws-cdk versions that i have:
aws-cdk.aws-sqs==1.204.0 aws-cdk.aws-ec2==1.204.0 aws-cdk.aws-rds==1.204.0 aws-cdk.aws-sagemaker==1.204.0 aws-cdk.aws-apigateway==1.204.0 aws-cdk.aws-ecr-assets==1.204.0 aws-cdk.aws-s3-deployment==1.204.0 aws-cdk.aws-s3-notifications==1.204.0 aws-cdk.aws-ecs==1.204.0 aws-cdk.aws-ecs-patterns==1.204.0 aws-cdk.aws-cloudwatch-actions==1.204.0 aws-cdk.core==1.204.0
the cdk cli version is:
2.140.0
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.140.0
Framework Version
No response
Node.js Version
v20.13.0
OS
MacOS Montery
Language
Python
Language Version
3.9.17
Other information
No response
The text was updated successfully, but these errors were encountered: