Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 318 Bytes
import boto.sns
import logging
logging.basicConfig(filename="sns-email-sub.log", level=logging.DEBUG)
c = boto.sns.connect_to_region("us-west-2")
topicarn = "arn:aws:sns:us-west-2:740810067088:adventtopic"
emailaddress = "you@you.you"
subscription = c.subscribe(topicarn, "email", emailaddress)
print subscription