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
In the previous steps you’ve made the AWS Cost & Usage Report data available to Amazon Athena with a lot of manual steps. In this lab you will use sample code to automate this setup and deploy a set of pre-canned queries automatically.
The sample code is packaged and available in the AWS Serverless Application Repository and called AWS Usage Queries (find the source code on GitHub ).
Let’s deploy this from the AWS Serverless Application Repository:
Note If you chose Option C in lab 1.1 , use:
proxy-metrics-lab
cur-data/hourly
aws_usage_queries_database
database from the drop down.
ALTER TABLE `cur_hourly` SET TBLPROPERTIES ('projection.year.range'='2018,2022')
Congratulations! With a two-click deployment you can now query the CUR data, have pre-canned queries for proxy metrics for Amazon EC2 and Amazon S3, and additional reference data for the EC2 instance types in the table ref_instance_types
.
You can now continue with Lab 2 in which you will learn to extend the queries by further data sources.
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