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

Can't add more than one cloudwatchLog event to Lambda function #6528

Open
MichaelMitchellM opened this issue Aug 12, 2019 · 2 comments
Open

Comments

@MichaelMitchellM
Copy link

This is a Bug Report

Description

I tried to make a Lambda function with multiple cloudwatchLog triggers.
One trigger works, 2+ doesn't. I tried with and without filters.
I tried the latest version v1.49.0 and also master since there could be some recent pull requests that may address the issue I'm having.

serverless deploy works fine, but looking at the Lambda in aws I see there are no triggers attached to it. I can manually add the cloudwatchLog events once deployed, but I need this to be automated :)

Similar or dependent issues:

Additional Data

  • v1.49.0 and master:
  • Ubuntu 18.04:
@charlie4fun
Copy link

As a workaround I found serverless@1.35.1 to be the latest version which does not suffer from this bug.

@MichaelMitchellM
Copy link
Author

@charlie4fun Our goal was to create a serverless plugin that gets all the log streams from the other functions in the services and then inject a new function with those streams as a trigger for log metrics and stuff. I felt it was easier to just have the plugin inject a new function per each log stream until this gets resolved as I didn't want to mess with people's serverless versions. It double the amount of Lambdas, but we're not at a point where that is a big concern.

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

No branches or pull requests

4 participants