aws-to-slack
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "aws-to-slack", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Forward AWS Notification Messages to Slack", | ||
@@ -17,12 +17,12 @@ "main": "handler/index.js", | ||
"dependencies": { | ||
"bluebird": "^3.5.0", | ||
"lodash": "^4.17.4" | ||
"bluebird": "^3.5.1", | ||
"lodash": "^4.17.5" | ||
}, | ||
"devDependencies": { | ||
"aws-sdk": "^2.123.0", | ||
"eslint": "^4.7.2", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-lodash": "^2.4.5", | ||
"eslint-plugin-promise": "^3.5.0" | ||
"aws-sdk": "^2.202.0", | ||
"eslint": "^4.18.1", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-lodash": "^2.6.1", | ||
"eslint-plugin-promise": "^3.6.0" | ||
} | ||
} |
@@ -22,2 +22,4 @@ # AWS-to-Slack | ||
* AWS Health Dashboard 🆕 | ||
* AWS Code Build 🆕 | ||
* Amazon Inspector 🆕 | ||
* CloudWatch Alarms (incl. Metrics) | ||
@@ -79,2 +81,13 @@ * Elastic Beanstalk | ||
### Setting Up AWS CodeBuild | ||
CodeBuild integration was suggested by [ericcj](https://github.com/ericcj) and is based on | ||
the Medium post [Monitor your AWS CodeBuilds via Lambda and Slack](https://hackernoon.com/monitor-your-aws-codebuilds-via-lambda-and-slack-ae2c621f68f1) by | ||
Randy Findley. | ||
To enable CodeBuild notifications add a new _CloudWatch Event Rule_, choose _CodeBuild_ | ||
as source and _CodeBuild Build State Change_ as type. As Target select the `aws-to-slack` | ||
Lambda. You can leave all other settings as is. Once your rule is created all CodeBuild | ||
build state events will be forwarded to your Slack channel. | ||
## Contributing | ||
@@ -81,0 +94,0 @@ |
@@ -13,3 +13,5 @@ "use strict"; | ||
require("./parsers/beanstalk"), | ||
require("./parsers/aws-health") | ||
require("./parsers/aws-health"), | ||
require("./parsers/inspector"), | ||
require("./parsers/codebuild"), | ||
]; | ||
@@ -27,3 +29,7 @@ | ||
})) | ||
.catch(() => { | ||
.catch(BbPromise.AggregateError, err => { | ||
_.forEach(_.compact(err), err => { | ||
// Rethrow on internal errors | ||
return BbPromise.reject(err); | ||
}); | ||
console.log("No parser was able to parse the message."); | ||
@@ -44,2 +50,5 @@ | ||
return Slack.postMessage(message); | ||
}) | ||
.catch(err => { | ||
console.log("ERROR:", err); | ||
}); | ||
@@ -46,0 +55,0 @@ } |
@@ -320,2 +320,7 @@ /** | ||
if (!fromTime || !toTime) { | ||
// Cannot render a chart without timeframe | ||
return ""; | ||
} | ||
const diff = (toTime - fromTime); | ||
@@ -322,0 +327,0 @@ const timeSlots = []; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1528405
26
1193
109
Updatedbluebird@^3.5.1
Updatedlodash@^4.17.5