Open fantapop opened 5 years ago
I encountered this one today again. Serverless: View the full error output: <>
Serverless Error ---------------------------------------
An error occurred: AwsAlertsNonCriticalAlarm - dev11-dev-P3-nonCritical-alerts-alarm already exists in stack arn:aws:cloudformation:us-east-1:
Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Issues: forum.serverless.com
Your Environment Information --------------------------- Operating System: darwin Node Version: 12.13.1 Framework Version: 2.1.1 Plugin Version: 4.0.4 SDK Version: 2.3.2 Components Version: 3.1.3
This is a Bug Report
Description
I accidentally configured the plugin incorrectly and instead of failing gracefully, a cloudformation upload was attempted and failed spectacularly.
For bug reports:
What went wrong?
What did you expect should have happened? An error message saying the config was invalid should be printed
What was the config you used?
alerts: {
alarms: [
'functionThrottles',
'functionErrors',
'functionInvocations',
'functionDuration',
],
dashboards: true,
topics: '${self:custom.service}-${self:custom.stage}-alerts-alarm',
}
What stacktrace or error message from your provider did you see? Many AWS::SNS::Topic objects were attempted to be created, it looks like one per alarm if it were operating correctly. It then fails to create these topics saying they "already exist":
Additional Data