How to move or export and import the dashboard?

@abbagali , I just finished some testing on this.

Assuming the output of the previous command has been sent to a .json file:

aws quicksight create-dashboard \
    --aws-account-id $AWS_ACCOUNT \
    --definition "$(cat dashboard.json | jq '.Definition' -c)" \
    --name $DASHBOARD_NAME \
    --dashboard-id $ID

That will get a dashboard imported. Same for Analysis. The output is a JSON schema that includes other information, and the input only needs the Definition property. You can use JQ to extract that or save just that part of the output to your file.

The only thing I don’t have is sharing the resource with a user from the command line. Those will import, but you’ll need to share it to your user from admin.