Skip to content
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

Confusing lambda function name #19

Open
vhermecz opened this issue Nov 26, 2021 · 1 comment
Open

Confusing lambda function name #19

vhermecz opened this issue Nov 26, 2021 · 1 comment

Comments

@vhermecz
Copy link

vhermecz commented Nov 26, 2021

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
Copy link
Owner

Glifery commented Nov 28, 2021

Feel free to contribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants