Update dashboard from existing dashboard template via awscli

Hi there

I am working on a quicksight environment and have the following:

a template “folder” which contains 2 x datasets, 1 x dashboard (template)

2 further folders which also contain 2 x datasets and 1 x dashboard

these environments have been created via awscli as follows:

aws quicksight create-folder xyz
aws quicksight create-data-set xyz (using --physical-table-map and --logical-table-map json)
aws quicksight create-data-set abc (using --physical-table-map and --logical-table-map json)
aws quicksight create-template (this is a dashboard template using json definition file)

now i use the 2 x further folders for visualisations (via dashboard) and the template folder just contains everything that eventually I copy to the 2 x further folders, but, I want to do this via awscli.

I’ve figured out how to update the 2 x datasets using awscli in the 2 x folders, but, the bit i am struggling with is the dashboard in the 2 x folders. When I update the dashboard template in the template folder, I want to then use awscli to update the dashboard in the 2 x folders via the updated template, without losing permissions etc (hence update as opposed to create).

Has anyone done this, or knows how it is done in easy to follow steps? I was hoping I could point at the template dashboard arn or something that I already updated in the template folder, when executing aws quicksight update-dashboard in the 2 x further folders, but its a bit confusing. I can’t really find any obvious examples. It will only ever use version 1 and also I want to be able to publish it too once updated.

If someone could show me how to do this with awscli step by step, I would really appreciate it. I was hoping that I don’t have to manually modify any json files, I can literally just reference the template in the template folder and update…

Thanks

Using the template method, here is a blog which walks through the steps : Migrate Amazon QuickSight across AWS accounts | AWS Big Data Blog

check if this helps :slight_smile:

Kind regards,
Koushik