Keep current region when creating SNS ARN topic

This commit is contained in:
Ilya Sukhanov 2015-07-31 16:01:07 -04:00
commit e08796bcf4
4 changed files with 33 additions and 17 deletions

View file

@ -2,8 +2,8 @@ from __future__ import unicode_literals
import uuid
def make_arn_for_topic(account_id, name):
return "arn:aws:sns:us-east-1:{0}:{1}".format(account_id, name)
def make_arn_for_topic(account_id, name, region_name):
return "arn:aws:sns:{0}:{1}:{2}".format(region_name, account_id, name)
def make_arn_for_subscription(topic_arn):