Skip to content

Commit

Permalink
feat: add support for slack alert notifications
Browse files Browse the repository at this point in the history
* Update template files to match with the slack notification changes in mca-monitoring
  • Loading branch information
Perttu Savolainen committed Dec 9, 2020
1 parent fb90a82 commit 8560840
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
25 changes: 14 additions & 11 deletions assets/monitoring/aws-template/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
"deploy": "cdk {{#if profile}}--profile {{ profile }} {{/if}}deploy"
},
"devDependencies": {
"@aws-cdk/aws-cloudformation": "^1.67.0",
"@aws-cdk/aws-cloudwatch": "^1.67.0",
"@aws-cdk/aws-cloudwatch-actions": "^1.67.0",
"@aws-cdk/aws-dynamodb": "^1.67.0",
"@aws-cdk/aws-lambda": "^1.67.0",
"@aws-cdk/aws-logs": "^1.67.0",
"@aws-cdk/aws-sns": "^1.67.0",
"@aws-cdk/aws-sns-subscriptions": "^1.67.0",
"@aws-cdk/core": "^1.67.0",
"@aws-cdk/aws-cloudformation": "~1.75.0",
"@aws-cdk/aws-cloudwatch": "~1.75.0",
"@aws-cdk/aws-cloudwatch-actions": "~1.75.0",
"@aws-cdk/aws-dynamodb": "~1.75.0",
"@aws-cdk/aws-lambda": "~1.75.0",
"@aws-cdk/aws-lambda-nodejs": "~1.75.0",
"@aws-cdk/aws-logs": "~1.75.0",
"@aws-cdk/aws-sns": "~1.75.0",
"@aws-cdk/aws-sns-subscriptions": "~1.75.0",
"@aws-cdk/core": "~1.75.0",
"@types/node": "^12.12.62",
"aws-cdk": "^1.67.0",
"aws-cdk": "~1.75.0",
"esbuild": "^0.8.15",
"node-fetch": "^2.6.1",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},
"dependencies": {
"mca-monitoring": "https://github.com/nordcloud/mca-monitoring/releases/download/v0.1.1/mca-monitoring-0.1.1.tgz"
"mca-monitoring": "https://github.com/nordcloud/mca-monitoring/releases/download/v0.1.1/mca-monitoring-0.1.2.tgz"
}
}
1 change: 1 addition & 0 deletions src/lib/monitoring/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class ConfigGenerator {
id: args.profile ? `${args.profile}-alerts-alarm-${args.stage}` : `alerts-alarm-${args.stage}`,
endpoints: [],
emails: [],
slackWebhook: '',
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/lib/monitoring/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export interface ConfigCustomSNS {
name: string;
emails?: string[];
endpoints?: string[];
slackWebhook?: string;
}

export interface ConfigCustom {
Expand Down

0 comments on commit 8560840

Please sign in to comment.