Optional - Update Dashboard Template

  1. Create an update.json file using the sample below
{
    "AwsAccountId": "<Account_ID>",
    "DashboardId": "cudos",
    "Name": "CUDOS",
    "DashboardPublishOptions": {
      "AdHocFilteringOption": {
        "AvailabilityStatus": "DISABLED"
      }
    },
    "SourceEntity": {
      "SourceTemplate": {
        "DataSetReferences": [
          {
            "DataSetPlaceholder": "summary_view",
            "DataSetArn": "arn:aws:quicksight:<region>:<Account_ID>:dataset/<DatasetID>"
          },
          {
            "DataSetPlaceholder": "ec2_running_cost",
            "DataSetArn": "arn:aws:quicksight:<region>:<Account_ID>:dataset/<DatasetID>"
          },
          {
            "DataSetPlaceholder": "compute_savings_plan_eligible_spend",
            "DataSetArn": "arn:aws:quicksight:<region>:<Account_ID>:dataset/<DatasetID>"
          },
          {
            "DataSetPlaceholder": "s3_view",
            "DataSetArn": "arn:aws:quicksight:<region>:<Account_ID>:dataset/<DatasetID>"
          },
          {
            "DataSetPlaceholder": "customer_all",
            "DataSetArn": "arn:aws:quicksight:<region>:<Account_ID>:dataset/<DatasetID>"
          }
        ],
        "Arn": "arn:aws:quicksight:us-east-1:223485597511:template/cudos_dashboard_v3"
          }
      }
}
  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 you created in the Preparing Quicksight section NOTE: There are 5 unique Dataset IDs
  2. Pull the latest published version of the CUDOS 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 cudos --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 cudos --version-number <version>