Skip to content

Commit

Permalink
Make sure Dashboards are named globaly unique
Browse files Browse the repository at this point in the history
  • Loading branch information
direnakkoc committed Oct 7, 2022
1 parent d976a93 commit 6038136
Show file tree
Hide file tree
Showing 4 changed files with 24,279 additions and 24,337 deletions.
3 changes: 2 additions & 1 deletion serverless-plugin/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ module.exports = function dashboard (serverless, dashboardConfig, functionDashbo
const dashboardResource = {
Type: 'AWS::CloudWatch::Dashboard',
Properties: {
DashboardName: `${context.stackName}Dashboard`,
// eslint-disable-next-line no-template-curly-in-string
DashboardName: { 'Fn::Sub': '${AWS::StackName}-${AWS::Region}-Dashboard' },
DashboardBody: { 'Fn::Sub': JSON.stringify(dash) }
}
}
Expand Down
Loading

0 comments on commit 6038136

Please sign in to comment.