Created
November 12, 2020 16:57
-
-
Save nmagee/bab82ae246802728da231f817c36cb92 to your computer and use it in GitHub Desktop.
A demo of publishing an SNS message. Update with the ARN of your own SNS Topic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import boto3 | |
import datetime | |
sns = boto3.client('sns') | |
response = sns.publish( | |
TopicArn="arn:aws:sns:us-east-1:555566667777:simple-topic", | |
Message="Hey there everybody, how's it going today?", | |
Subject="Testing testing" | |
) | |
print(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment