This is an optional lab if you would like to integrate notifications from Cloud One - File Storage Security to your Slack workspaces based on one specific channel that you will define.
In this integration, we will make a Lambda function send a Slack message every time that we have a new detection on Cloud One - File Storage Security, you can deploy this automation using the AWS Console, AWS CLI or Makefile. In this example we will demonstrate using the AWS CLI:
Incoming WebHooks
.Incoming WebHooks
, then click “Add to Slack”incoming-webhook
; if you prefer, you can customize the name.If you need more detailf on how to create the Incoming Webhooks on Slack here is a great Link - Additional information
In the AWS console, go to Services > CloudFormation > select the storage stack from File Storage Security > Click on Resources. - Scroll down to locate the ScanResultTopic Logical ID. - Copy the ScanResultTopic ARN to a temporary location.
Example: arn:aws:sns:us-east-1:000000000000:FileStorageSecurity-All-In-One-Stack-StorageStack-1IDPU1PZ2W5RN-ScanResultTopic-N8DD2JH1GRKF
Open the Slack Serverless Application in a new tab: CloudOne-FSS-Plugin-Slack .
Click Deploy
Then you should be able to see a Cloud One - File Storage Security event in your Slack Channel like this one below:
If you need more details on how to deploy the post action for Slack integration here is more information in our GitHub repository.