skycrafters / responder

The Responder is a tool that aims to provide a simple framework to respond to any events in the cloud
https://skycrafters.io
Apache License 2.0
17 stars 5 forks source link

added discord functionality #7

Closed dannyb1983 closed 3 years ago

dannyb1983 commented 3 years ago

Added discord functionality

Create Discord Ticket

This feature allows messages to be sent to discord through it's built in Webhook functionality. Rather than utilizing a library, messages are sent to the webhook through node fetch requests. Thus, node-fetch has been added to the package.json file.

Files added:

To test this feature:

Note: The remediation part of the tests will fail if you are running the tests locally. In order to fully test this feature, make sure to re-deploy your configuration and then do something in your AWS account that will trigger/break one of the rules (action.js). For example:

```
aws iam create-user --user-name noncompliantuser
```
dannyb1983 commented 3 years ago

Also fixed all eslint formatting issues in the index.js file