ACloudGuru / serverless-plugin-aws-alerts

A Serverless Framework plugin that creates CloudWatch alarms for functions.
MIT License
531 stars 149 forks source link

Dashboard already exists #242

Open MarkVink opened 1 year ago

MarkVink commented 1 year ago

This is a Bug Report

Description

Deployment fails due to dashboard already existing (created during a previous deployment).

For bug reports:

custom: {
  <snip>
  alerts: {
    dashboards: true,
  },
},
✖ Stack <snip>-staging failed to deploy (114s)
Environment: darwin, node 18.12.1, framework 3.27.0 (local), plugin 6.2.3, SDK 4.3.2
Credentials: Local, "<snip>" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
CREATE_FAILED: AlertsDashboard (AWS::CloudWatch::Dashboard)
Dashboard '<snip>-staging-us-east-1' already exists

Additional Data

georgeoffley commented 1 year ago

👍🏽 on this.

I was seeing the same thing when deploying. I had to go in and delete the dashboard manually and then rerun CI deployed.

I also noticed the same thing with our custom alarms: the same error message (Alarm already exists) and the same method for clearing the error.