Created
March 23, 2017 04:35
-
-
Save pilgrim2go/5e02c424b53c2f69b68f9aae8db7c7d0 to your computer and use it in GitHub Desktop.
Sample test to verify SNS permission
This file contains hidden or 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', | |
| 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