Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
We will now setup the QuickSight dashboard to visualize your usage by cost, and setup the analysis to provide Savings Plan recommendations.
Go to the QuickSight service:
Click on Manage data:
Click on New data set:
Click Athena:
Enter a Data source name of SP_Usage and click Create data source:
Select the costmaster database, and the sp_usage table, click Select:
Ensure SPICE is selected, click Visualize:
Click on QuickSight to go to the home page:
Click on Manage data:
Select the sp_usage Dataset:
Click Schedule refresh:
Click Create:
Enter a schedule, it needs to be refreshed daily, and click Create:
Click Cancel to exit:
Click the x in the top corner:
You now have your data set setup ready to create a visualization.
This section is optional and replaces the next two steps by creating the dashboard from a template. You will require access and knowledge of the AWS CLI, and Enterprise edition of QuickSight. If you do not have the access, go to the next step and manually create the dashboard as per the lab.
Go to this web page to request access to the template. Enter you AWS AccountID and click Submit: Template Access
Edit the following command, replacing AccountID and region, then using the CLI list the QuickSight datasets and copy the Arn for the sp_usage dataset:
aws quicksight list-data-sets --aws-account-id (AccountID) --region (region)
Edit the following command, replacing AccountID and region, then using the CLI list your QuickSight users ARNs:
aws quicksight list-users --aws-account-id (AccountID) --namespace default --region (region)
Create a local file create-dashboard.json with the text below, replace the values (Account ID), (User ARN), (Dataset ARN):
{
"AwsAccountId": "(Account ID)",
"DashboardId": "SP_usage_analysis",
"Name": "sp_usage analysis",
"Permissions": [
{
"Principal": "(User ARN)",
"Actions": [
"quicksight:DescribeDashboard",
"quicksight:ListDashboardVersions",
"quicksight:UpdateDashboardPermissions",
"quicksight:QueryDashboard",
"quicksight:UpdateDashboard",
"quicksight:DeleteDashboard",
"quicksight:DescribeDashboardPermissions",
"quicksight:UpdateDashboardPublishedVersion"
]
}
],
"SourceEntity": {
"SourceTemplate": {
"DataSetReferences": [
{
"DataSetPlaceholder": "sp_usage",
"DataSetArn": "(Dataset ARN)"
}
],
"Arn": "arn:aws:quicksight:us-east-1:869004330191:template/SP-Analysis-template"
}
},
"VersionDescription": "1"
}
Edit the following command, replacing (region), Run the command to create the dashboard and you should get a 200 response:
aws quicksight create-dashboard --cli-input-json file://create-dashboard.json --region (region)
After a few minutes the dashboard will become available in QuickSight, click on the Dashboard name:
Click Share, click Share dashboard,
Add the required users, or share with all users, ensure you check Save as for each user:
Click Save as:
Enter an Analysis name and click Create:
You will now have the analysis created automatically from the template:
You have successfully created the analysis from a template, this lab is complete.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool