Last active
February 25, 2017 14:05
-
-
Save Shemeikka/4ff7bb2e5bb24e78fe284d7a416c4ebd to your computer and use it in GitHub Desktop.
Example on how to work with AWS SNS with Boto3. This requires that you have set AWS credentials to your ~/.aws/credentials and the default region in ~/.aws/config
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
import boto3 | |
client = boto3.client('sns') | |
response = client.publish( | |
TopicArn='<your topic arn>', | |
Message='<your message>' | |
) | |
print("Response: {}".format(response)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment