Skip to content

Commit 00f188b

Browse files
committed
return ARN
1 parent 787f005 commit 00f188b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def startCluster():
659659
"ApproximateNumberOfMessagesVisible",
660660
]
661661
sns = boto3.client("sns")
662-
MonitorARN = sns.create_topic(Name="Monitor") # returns ARN since topic already exists
662+
MonitorARN = sns.create_topic(Name="Monitor")['TopicArn'] # returns ARN since topic already exists
663663
for metric in metricnames:
664664
response = cloudwatch.put_metric_alarm(
665665
AlarmName=f'{metric}isZero_{APP_NAME}',

0 commit comments

Comments
 (0)