Skip to content

Commit 0145619

Browse files
committed
ensure mgmt acct client for sns config topic
1 parent f045a22 commit 0145619

File tree

1 file changed

+2
-1
lines changed
  • aws_sra_examples/solutions/genai/bedrock_org/lambda/src

1 file changed

+2
-1
lines changed

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ def deploy_sns_configuration_topics(context):
595595
global DRY_RUN_DATA
596596
global LIVE_RUN_DATA
597597
global CFN_RESPONSE_DATA
598-
598+
599+
sns.SNS_CLIENT = sts.assume_role(sts.MANAGEMENT_ACCOUNT, sts.CONFIGURATION_ROLE, "sns", sts.HOME_REGION)
599600
topic_search = sns.find_sns_topic(f"{SOLUTION_NAME}-configuration")
600601
if topic_search is None:
601602
# if DRY_RUN is False:

0 commit comments

Comments
 (0)