diff --git a/source/LambdaLayers/sechub_findings.py b/source/LambdaLayers/sechub_findings.py index 629753dc..69b338d4 100644 --- a/source/LambdaLayers/sechub_findings.py +++ b/source/LambdaLayers/sechub_findings.py @@ -271,9 +271,10 @@ def notify(self): 'finding': self.finding_info } + topic = 'SO0111-SHARR_Topic' if self.send_to_sns: sent_id = publish_to_sns( - 'SO0111-SHARR_Topic', + topic, json.dumps( sns_notify_json, indent=2, @@ -281,7 +282,7 @@ def notify(self): ), self.__region ) - print(f'Notification message ID {sent_id} sent.') + print(f'Notification message ID {sent_id} sent to {topic}') self.applogger.add_message( self.severity + ': ' + self.message )