Skip to content

Commit f8525ea

Browse files
committed
ensure global region used for iam resources
1 parent 5a18c93 commit f8525ea

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
@@ -1989,7 +1989,7 @@ def deploy_iam_role(account_id: str, rule_name: str) -> str: # noqa: CFQ001, CC
19891989
IAM role ARN
19901990
"""
19911991
global CFN_RESPONSE_DATA
1992-
iam.IAM_CLIENT = sts.assume_role(account_id, sts.CONFIGURATION_ROLE, "iam", REGION)
1992+
iam.IAM_CLIENT = sts.assume_role(account_id, sts.CONFIGURATION_ROLE, "iam", iam.get_iam_global_region())
19931993
LOGGER.info(f"Deploying IAM {rule_name} execution role for rule lambda in {account_id}...")
19941994
role_arn = ""
19951995
iam_role_search = iam.check_iam_role_exists(rule_name)

0 commit comments

Comments
 (0)