Skip to content

Instantly share code, notes, and snippets.

@Shemeikka
Last active February 25, 2017 14:05
Show Gist options
  • Save Shemeikka/4ff7bb2e5bb24e78fe284d7a416c4ebd to your computer and use it in GitHub Desktop.
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
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