Skip to content

Commit 8560840

Browse files
author
Perttu Savolainen
authored
feat: add support for slack alert notifications
* Update template files to match with the slack notification changes in mca-monitoring
1 parent fb90a82 commit 8560840

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

assets/monitoring/aws-template/package.json.hbs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,24 @@
88
"deploy": "cdk {{#if profile}}--profile {{ profile }} {{/if}}deploy"
99
},
1010
"devDependencies": {
11-
"@aws-cdk/aws-cloudformation": "^1.67.0",
12-
"@aws-cdk/aws-cloudwatch": "^1.67.0",
13-
"@aws-cdk/aws-cloudwatch-actions": "^1.67.0",
14-
"@aws-cdk/aws-dynamodb": "^1.67.0",
15-
"@aws-cdk/aws-lambda": "^1.67.0",
16-
"@aws-cdk/aws-logs": "^1.67.0",
17-
"@aws-cdk/aws-sns": "^1.67.0",
18-
"@aws-cdk/aws-sns-subscriptions": "^1.67.0",
19-
"@aws-cdk/core": "^1.67.0",
11+
"@aws-cdk/aws-cloudformation": "~1.75.0",
12+
"@aws-cdk/aws-cloudwatch": "~1.75.0",
13+
"@aws-cdk/aws-cloudwatch-actions": "~1.75.0",
14+
"@aws-cdk/aws-dynamodb": "~1.75.0",
15+
"@aws-cdk/aws-lambda": "~1.75.0",
16+
"@aws-cdk/aws-lambda-nodejs": "~1.75.0",
17+
"@aws-cdk/aws-logs": "~1.75.0",
18+
"@aws-cdk/aws-sns": "~1.75.0",
19+
"@aws-cdk/aws-sns-subscriptions": "~1.75.0",
20+
"@aws-cdk/core": "~1.75.0",
2021
"@types/node": "^12.12.62",
21-
"aws-cdk": "^1.67.0",
22+
"aws-cdk": "~1.75.0",
23+
"esbuild": "^0.8.15",
24+
"node-fetch": "^2.6.1",
2225
"ts-node": "^9.0.0",
2326
"typescript": "^4.0.3"
2427
},
2528
"dependencies": {
26-
"mca-monitoring": "https://github.com/nordcloud/mca-monitoring/releases/download/v0.1.1/mca-monitoring-0.1.1.tgz"
29+
"mca-monitoring": "https://github.com/nordcloud/mca-monitoring/releases/download/v0.1.1/mca-monitoring-0.1.2.tgz"
2730
}
2831
}

src/lib/monitoring/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class ConfigGenerator {
4040
id: args.profile ? `${args.profile}-alerts-alarm-${args.stage}` : `alerts-alarm-${args.stage}`,
4141
endpoints: [],
4242
emails: [],
43+
slackWebhook: '',
4344
},
4445
},
4546
},

src/lib/monitoring/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export interface ConfigCustomSNS {
197197
name: string;
198198
emails?: string[];
199199
endpoints?: string[];
200+
slackWebhook?: string;
200201
}
201202

202203
export interface ConfigCustom {

0 commit comments

Comments
 (0)