Optional - Update Dashboard Template

  1. Create an update.json file using the sample below
{
    "AwsAccountId": "<Account_ID>",
    "DashboardId": "trends-dashboard",
    "Name": "Trends-Dashboard",
    "DashboardPublishOptions": {
      "AdHocFilteringOption": {
        "AvailabilityStatus": "DISABLED"
      }
    },
    "SourceEntity": {
      "SourceTemplate": {
        "DataSetReferences": [
          {
              "DataSetPlaceholder": "monthly-bill-by-account",
              "DataSetArn": "arn:aws:quicksight:<Region>:<Account_ID>:dataset/<DatasetID>"

          },
                                   {
              "DataSetPlaceholder": "monthly-anomaly-detection",
              "DataSetArn": "arn:aws:quicksight:<Region>:<Account_ID>:dataset/<DatasetID>"

          },
                                   {
               "DataSetPlaceholder": "daily-anomaly-detection",
               "DataSetArn": "arn:aws:quicksight:<Region>:<Account_ID>:dataset/<DatasetID>"

           }
        ],
        "Arn": "arn:aws:quicksight:us-east-1:223485597511:template/cudos-trends-dashboard-template"
          }
      }
}
  1. Update the update.json to match your details by replacing the following placeholders:

    Placeholder Replace with
    <Account_ID> AWS Account ID where the dashboard will be deployed
    <Region> Region Code where the dashboard will be deployed (Example eu-west-1)
    <AWS shared template ARN> Template ARN shared by AWS contact
    <DatasetID> Replace with Dataset ID’s from the datasets created in the Create QuickSight Dataset section NOTE: There are 3 unique Dataset IDs
  2. Pull the latest published version of the Trends Dashboard template

aws quicksight update-dashboard --cli-input-json file://update.json --region <region>
  1. Query the version number:
aws quicksight list-dashboard-versions --region <region> --aws-account-id <Account_ID> --dashboard-id trends-dashboard --query 'sort_by(DashboardVersionSummaryList, &VersionNumber)[-1].VersionNumber'
  1. Apply the latest pulled changes to the deployed dashboard with this CLI command:
aws quicksight update-dashboard-published-version --region <region> --aws-account-id <Account_ID> --dashboard-id trends-dashboard --version-number <version>