Glifery / cors-proxy

Simple AWS Lambda based proxy server for making CORS requests from browser to any HTTP server
49 stars 31 forks source link

Confusing lambda function name #19

Open vhermecz opened 2 years ago

vhermecz commented 2 years ago

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
Glifery commented 2 years ago

Feel free to contribute!