-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix cloudwatchLog event with the case that facing a resource limit exceeded #3447
Comments
Correct! @horike37 Thanks for opening this one so that we don't forget about it 👍 |
cloudwatchLog
event with the case that facing a resource limit exceeded
The deployment will fail with same error if change the order of the cloudwatchLog groups list when one lambda has been set multiple cloudwatchLog groups.
and those are failed:
|
I was trying to debug this issue to see if I could help with a first contribution here and on my tests, I realized that this is not a problem on |
When using
cloudwatchLog
event, the deployment will fail with an error that a resource limit exceeded if you replace thelogGroup
name of one function with thelogGroup
name of another function in yourserverless.yml
file and runserverless deploy
This is caused by the fact that CloudFormation tries to attach the new subscription filter before detaching the old one. CloudWatch Logs only support one subscription fitlter per log group as you can read in the documentation about CloudWatch Logs Limits.
We should fix it in upcoming release.
cc @pmuens
The text was updated successfully, but these errors were encountered: