Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cmorri1988
Creator
Creator

Send Publish to AWS SNS via Script

Hi there,

Has anyone published messages to AWS SNS using a connector or executing a powershell command?

If so, how did you do it?

Thanks

1 Reply
cmorri1988
Creator
Creator
Author

For reference for anyone using this in future,

I created a CSV output of errors and scheduled the following PowerShell for AWS script.

Thanks

N.B the csv had two columns named subject and message, please replace the path with the directory from which your error CSV file is stored

////////////

$errorcsv = import-csv 'D:\Test\Qlik App Data\Data Sync\errors.csv'

foreach($row in $errorcsv)

  {

  $field1 = $row.subject

  $field2 = $row.message

  Publish-SNSMessage -TopicArn arn:aws:sns:us-west-2:9222EXAMPLE:Error_Notification -Message "Test" -Region us-west-2

  Echo "$field1, $field2"

  }