-
Notifications
You must be signed in to change notification settings - Fork 28
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 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. #402
Comments
Here is the failing cloudformation stack template that shows its is trying to use nodejs14.x which causes the failure |
If I kill a manual "dotnet aws deploy" after it has uploaded the files to S3 and before it tries to run the CF stack, and then
then it works. NB. I tried using nodejs20.x and this failed. |
I had the same problem。 |
This issue is also present in my case. @alc-aardvark you seemed to have found an interesting workaround, but this should ideally work out of the box, right? |
Thanks for reaching out. Work is currently in progress to update the Deploy Tool's Blazor recipe to use a newer CDK version that relies on Nodejs20.x: aws/aws-dotnet-deploy#818. When this improvement becomes available in a future release of the deploy tool, we'll be able to onboard it to the Toolkit's Publish to AWS experience. |
what is the accepted solution for this issue |
We are not aware of a workaround for this issue today. As mentioned, we are tracking work to address this here: aws/aws-dotnet-deploy#818 and will update the toolkit once it is fixed. |
looks like an update is available in v 1.19.13 do the following from a command prompt to update
|
I've re-opened this issue until we have the same deploy tool fix available within the Toolkit |
We've recently released version 1.50.0.0 of the toolkit and you can now deploy Blazor projects without this issue. |
Describe the bug
I have a .Net8 Blazor Wasm website that I am trying to deploy to AWS from the Visual Studio "Publish to AWS" command. During the deployment it gets a failure while running the Cloudformation Stack.
The Error is "Stack Deployments Failed: Error: The stack named XXXWebsite failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "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: ac2f1dd6-cf04-43f8-b18a-5e154cd48bfb)" (RequestToken: efec29a8-e202-1437-3835-9f2fe724910a, HandlerErrorCode: InvalidRequest)"
To Reproduce
Steps to reproduce the behavior
Expected behavior
I expect the deployment to complete without errors
Screenshots
Toolkit Logs
Development System (please complete the following information):
Additional context
The website template.json file in the folder ".aws-dotnet-deploy/projects" recreates a *template.json file for the deploy and it has the nodejs version of 14.0x. I believe the aws codegen is codegenning with an old value of nodejs that is no longer supported by AWS and so the cloudformation stack fails when trying to create the nodejs Lambda function Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler
The text was updated successfully, but these errors were encountered: