Skip to content

Commit 129ac03

Browse files
authored
support paritions (#723)
1 parent 4e2e353 commit 129ac03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cid/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def _share(self, dashboard_id, **kwargs):
878878
print(f'Sharing complete')
879879
elif share_method in ['account', 'user']:
880880
if share_method == 'account':
881-
principal_arn = f"arn:aws:quicksight:{self.qs.identityRegion}:{self.qs.account_id}:namespace/default"
881+
principal_arn = f"arn:{self.base.partition}:quicksight:{self.qs.identityRegion}:{self.qs.account_id}:namespace/default"
882882
template_filename = 'data/permissions/dashboard_permissions_namespace.json'
883883
elif share_method == 'user':
884884
template_filename = 'data/permissions/dashboard_permissions.json'
@@ -1250,7 +1250,7 @@ def create_datasource(self, datasource_id) -> str:
12501250
if not role_arn:
12511251
role_name = get_parameters().get('quicksight-datasource-role')
12521252
if role_name:
1253-
role_arn = f'arn:aws:iam::{self.base.account_id}:role/{role_name}'
1253+
role_arn = f'arn:{self.base.partition}:iam::{self.base.account_id}:role/{role_name}'
12541254
athena_datasource = self.qs.create_data_source(
12551255
athena_workgroup=self.athena.WorkGroup,
12561256
datasource_id=datasource_id,

0 commit comments

Comments
 (0)