Skip to content

Commit 3ef1bd1

Browse files
committed
minor mod to find links client
1 parent 914ff61 commit 3ef1bd1

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ def create_event(event, context):
694694
DRY_RUN_DATA["OAMCrossAccountRolePolicyAttach"] = f"DRY_RUN: Attach {policy_arn} policy to {cloudwatch.CROSS_ACCOUNT_ROLE_NAME} IAM role"
695695

696696
# 5d) OAM link in bedrock account
697-
cloudwatch.CWOAM_CLIENT = sts.assume_role(bedrock_account, sts.CONFIGURATION_ROLE, "cloudwatch", bedrock_region)
697+
cloudwatch.CWOAM_CLIENT = sts.assume_role(bedrock_account, sts.CONFIGURATION_ROLE, "oam", bedrock_region)
698698
search_oam_link = cloudwatch.find_oam_link(oam_sink_arn)
699699
if search_oam_link[0] is False:
700700
if DRY_RUN is False:

0 commit comments

Comments
 (0)