Has anyone successfully exported a dashboard and related assets (datasets, analyses, etc) via the APIs / CLI and imported it into another account? Would you happen to have shared the steps you took in a blog post or similar? Specifically, I want to bring dashboards created under an account in Commercial over to a GovCloud account.
I have been trying the start_asset_bundle_export_job()
and managed to get a .qs download link which I successfully downloaded.
response = client.start_asset_bundle_export_job(
AwsAccountId=AWS_ACCOUNT_ID,
AssetBundleExportJobId=job_id,
IncludeAllDependencies=True, # Include all dependencies like datasets and analyses
ResourceArns=resource_arns,
ExportFormat=EXPORT_FORMAT,
IncludePermissions=True, # Optional: Include permissions
IncludeTags=True, # Optional: Include tags
IncludeFolderMemberships=True # Optional: Include folder memberships
)
The problem I am facing is trying to load it into another account. I get errors such as the following:
"Arn": "arn:aws:quicksight:us-east-1:46xxx59:datasource/76a3b999-1969-4e74-9181-e4c1d4a8123c",
"Type": "com.amazonaws.services.quicksight.model.InvalidParameterValueException",
"Message": "All principals in ResourcePermission list and the requester must be under the same account"
I was wondering if anyone had managed to export from one account and import into another account. Were there any special tricks? For example, I am not sure what the source of the “All principals in ResourcePermission list and the requester must be under the same account” error is.
Thanks for any help!