evannuil/aws-snapshot-tool

AttributeError: 'NoneType' object has no attribute 'publish' when sending SNS message

stardothosting opened this issue ยท 2 comments

I got the following trackback error when the script tries to send an SNS message ๐Ÿ‘

Traceback (most recent call last):
File "./makesnapshots.py", line 181, in
sns.publish(mytopic_arn,message,"Finished AWS snapshotting")
AttributeError: 'NoneType' object has no attribute 'publish'

This was resolved by putting the following line right before the script sends messages :

sns = boto.connect_sns()

my mistake! wrong region was defined in the config :)

I came across this same error, but I'm not able to resolve it. I made sure my region is correct. I'm using "us-east-2" as my region. Did you have to format the region a special way?