AWS lambda problems

I want to use the node for AWS lambda to execute my task.but i meet a problems.

how should I solve it ?

Welcome to the community.

Just tested it and it’s working just fine for me.

Why is it the function field in red? is it the server running? in which line the body is undefined?

Thanks for reply,
my aws region is cn-northwest-1 . Could that be the reason?

After I chose the Credentials,the function field change to red. It doesn’t change whether I fill in the function name or not。

There is no region called cn-northwest-1 according to this

It may just be that the document isn’t updated, but it’s real

Got it. Well I will suggest you make sure the credentials have attached a policy with access to execute a lambda function.

I confirmed it again.the credentials have attached a policy with access to execute a lambda function.Is there any other plan ?

Thanks for reply. I finally solved this problem, the core problem is the correct endpoint is lambda.cn-northwest-1.amazonaws.com.cn ,but the source code is ${service}.${credentials.region}.amazonaws.com

ahh that is quite weird as it works for me with the current form. I wonder if this applies just for that region.