aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
753 stars 219 forks source link

Runtime nodejs20.x is unsupported from WebStorm IDE #4209

Open fernandosanchezjr opened 6 months ago

fernandosanchezjr commented 6 months ago

When trying to run a lambda targeting nodejs20.x locally on WebStorm as an AWS Lambda run configuration I experience the following error:

Error: the runtime `nodejs20.x`  is unsupported.

Screenshot from 2024-03-27 15-29-24

Screenshot from 2024-03-27 15-31-40

I am able to invoke the lambda locally, however:

$ sam local invoke getAllItemsFunction -e getAllItemsRequest.json 
Invoking src/handlers/get-all-items.getAllItemsHandler (nodejs20.x)                                                                                                                                                                                                            
Local image is up-to-date                                                                                                                                                                                                                                                      
Using local image: public.ecr.aws/lambda/nodejs:20-rapid-arm64.                                                                                                                                                                                                                

Mounting /home/fernando/projects/samnodetestone/nodetestone/.aws-sam/build/getAllItemsFunction as /var/task:ro,delegated, inside runtime container 
< additional output removed>

Toolkit: AWS Toolkit For JetBrains 2.14-233 OS: Linux 6.6.0-1003-apple-arm IDE: WebStorm 233

LarsOlt commented 6 months ago

I have the same problem. Are there any workarounds?

yusuke0913 commented 6 months ago

I'm having the exact same issue... Can anyone find the solution?