evannuil / aws-snapshot-tool

A Python/Boto script that automates snapshot making of EBS volumes and rotating.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

stardothosting opened this issue Β· 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?