Skip to content

Instantly share code, notes, and snippets.

View ddura's full-sized avatar

Daniel Dura ddura

View GitHub Profile
@marknca
marknca / send_to_slack.py
Last active October 22, 2019 12:56
Send Deep Security events to Slack via Amazon SNS and AWS Lambda
# Written in Python 3.x
# in AWS Lambda, set:
# - the runtime to Python 3.x
# - the handler to: lambda_function.lambda_handler
# in Deep Security output the events to a valid SNS topic
# - more at https://help.deepsecurity.trendmicro.com/sns.html?Highlight=sns
# connect the AWS Lambda function to the SNS topic via a trigger
# - more at https://help.deepsecurity.trendmicro.com/sns.html?Highlight=sns
# - or do it via the AWS Lambda Management Console on the web (much, much simpler)
#
#!/usr/bin/env ruby
#^syntax detection
site 'http://community.opscode.com/api/v1'
cookbook 'apt'
cookbook 'git',
git: 'https://github.com/fnichol/chef-git.git'
cookbook 'build-essential'
cookbook 'rvm',