Skip to content

Commit

Permalink
Merge pull request duo-labs#903 from 0xdabbad00/upstream_changes
Browse files Browse the repository at this point in the history
Upstream changes
  • Loading branch information
0xdabbad00 authored Nov 8, 2021
2 parents 04bd2bf + eda9259 commit 4df9fd7
Show file tree
Hide file tree
Showing 27 changed files with 344 additions and 1,288 deletions.
14 changes: 8 additions & 6 deletions auditor/resources/alarm_forwarder/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import boto3
import os


def handler(event, context):
sns = boto3.client('sns')
for record in event['Records']:
sns = boto3.client("sns")
for record in event["Records"]:
sns.publish(
TopicArn=str(os.environ['ALARM_SNS']),
Message=record['Sns']['Message'],
Subject=record['Sns']['Subject'])
return True
TopicArn=str(os.environ["ALARM_SNS"]),
Message=record["Sns"]["Message"],
Subject=record["Sns"]["Subject"],
)
return True
2 changes: 1 addition & 1 deletion cloudmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import pkgutil
import importlib

__version__ = "2.10.0"
__version__ = "2.10.1"


def show_help(commands):
Expand Down
Loading

0 comments on commit 4df9fd7

Please sign in to comment.