I’m promoting QS dashboard from Account A to Account B.
I did it successfully without using the ‘asset as bundle’ function but now I’d like to try that out.
Upon exporting the dashboard and its dependencies ( theme, analysis, dataset,datasource) , I know I need to override some parameters esp. Arns.
[type or paste code here](https://docs.aws.amazon.com/cli/latest/reference/quicksight/start-asset-bundle-import-job.html)
But, the API doc shows only datasource has some detail parameters. For example, I am able to override manifest file location for s3 datasource.
Now, for Dashboard, it looks like I need to update themeArn, datasetArns. see below example.
However above Api doc doesn’t show I can override those as it only support id and name for overriding.
{"resourceType":"dashboard","dashboardId":"xx-ed2f-4805-b560-5c7e62be569e",
"name":"ds_xx_dev",
"themeArn":"arn:aws:quicksight:us-east-1:xx:theme/xxx-4c36-817f-042b0c15a390",
"definition":{
"dataSetIdentifierDeclarations":[
{
"identifier":"xx-snapshot-s3",
"dataSetArn":"arn:aws:quicksight:us-east-1:xxx:dataset/xx7-44b1-bb59-f11ef9742e1f"
},
{
"identifier":"xx-trend-s3",
"dataSetArn":"arn:aws:quicksight:us-east-1:xx:dataset/xx-21d1-4b51-b36a-fe77a91a345b"
}
],
The same concern goes to Dataset.
I need to override dataSourceArn as it currently has sourceAccountId. I need to replace it with targetAccountId. But, I don’t know how I can do this.
"resourceType":"dataset",
"dataSetId":"d0d7757f-21d1-4b51-b36a-fe77a91a345b",
"name":"xx-trend-s3",
"physicalTableMap":{
"xx-f963-4b4f-b965-cfadc7ed1bf8":{
"s3Source":{"dataSourceArn":"arn:aws:quicksight:us-east-1:xx:datasource/xxx-ce82-496a-9642-8bf2d1fecf02",
"uploadSettings":{
"format":"CSV","startFromRow":1,"containsHeader":true,"textQualifier":"DOUBLE_QUOTE","delimiter":","
},
"inputColumns":[{"name":"MondayDate","type":"STRING"},{"name":"SnapshotDate","type":"STRING"}
Before I was updating these myself but I wonder if these can be done automatically when I use import-job.
any idea?