Keep current region when creating SNS ARN topic
This commit is contained in:
parent
9c81b7340c
commit
e08796bcf4
4 changed files with 33 additions and 17 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue