Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (7 sloc) 289 Bytes
import boto.sns
import logging
logging.basicConfig(filename="sns-topic.log", level=logging.DEBUG)
c = boto.sns.connect_to_region("us-west-2")
topicname = "adventtopic"
topicarn = c.create_topic(topicname)
print topicname, "has been successfully created with a topic ARN of", topicarn