Skip to content

Instantly share code, notes, and snippets.

@pilgrim2go
Created March 23, 2017 04:35
Show Gist options
  • Save pilgrim2go/5e02c424b53c2f69b68f9aae8db7c7d0 to your computer and use it in GitHub Desktop.
Save pilgrim2go/5e02c424b53c2f69b68f9aae8db7c7d0 to your computer and use it in GitHub Desktop.
Sample test to verify SNS permission
import boto3
client = boto3.client('sns',
region_name='us-west-2',
aws_access_key_id='aws_access_key_id',
aws_secret_access_key='aws_secret_access_key'
)
response = client.publish(
TopicArn='full_arn_topic_name',
Message='test'
)
print("Response: {}".format(response))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment