While the function appears with the name cors-proxy, if you want to see AWS logs, you need to use sls logs -s dev -f lambda -t.
According to the doc, the name serverless uses is the direct child of the functions property, thus in this case lambda.
While this might be an error/bug in Serverless itself, would be nice to see how to query the aws logs in readme.md
The original error I got was:
$ node_modules/.bin/serverless logs -s dev -f cors-proxy -t
Serverless Error ---------------------------------------
Function "cors-proxy" doesn't exist in this Service
While the function appears with the name
cors-proxy
, if you want to see AWS logs, you need to usesls logs -s dev -f lambda -t
. According to the doc, the name serverless uses is the direct child of thefunctions
property, thus in this caselambda
. While this might be an error/bug in Serverless itself, would be nice to see how to query the aws logs in readme.mdThe original error I got was: