From 402497ad48a7605c5429eca5df3a26d5d1379c9e Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Fri, 11 Oct 2024 16:00:47 +0000 Subject: [PATCH] update the role arn --- fixbackend/dispatcher/dispatcher_service.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fixbackend/dispatcher/dispatcher_service.py b/fixbackend/dispatcher/dispatcher_service.py index 969b3bf0..2e659e81 100644 --- a/fixbackend/dispatcher/dispatcher_service.py +++ b/fixbackend/dispatcher/dispatcher_service.py @@ -508,8 +508,10 @@ async def account_information() -> Optional[AccountInformation]: aws_account_id=account.account_id, aws_account_name=account.final_name(), aws_role_arn=AwsARN(f"arn:aws:iam::{account.account_id}:role/{role_name}"), - scrape_org_role_arn=AwsARN( - f"arn:aws:iam::{privileged_account_id}:role/FixCrossAccountAccessRole" + scrape_org_role_arn=( + AwsARN(f"arn:aws:iam::{privileged_account_id}:role/{role_name}") + if privileged_account_id + else None ), external_id=external_id, )