{"id":70321,"date":"2025-03-15T09:51:45","date_gmt":"2025-03-15T04:21:45","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=70321"},"modified":"2025-03-19T15:33:31","modified_gmt":"2025-03-19T10:03:31","slug":"mastering-aws-cost-management-with-quicksight-a-comprehensive-workflow-from-data-export-to-dashboard-insights","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/mastering-aws-cost-management-with-quicksight-a-comprehensive-workflow-from-data-export-to-dashboard-insights\/","title":{"rendered":"Mastering AWS Cost Management with QuickSight: A Comprehensive Workflow from Data Export to Dashboard Insights!"},"content":{"rendered":"<h3><strong>Challenges with Existing Cost Explorer<\/strong><\/h3>\n<p>AWS Cost Explorer provides resource-based cost insights, but it has a limitation: it only allows viewing cost data for individual resources for the last 14 days. If cost trends need to be analyzed over a longer period and specific resources contributing to cost increases beyond two weeks need to be identified, a more advanced solution is required. AWS QuickSight, in combination with AWS Cost and Usage Report (CUR) and Athena, enables the creation of powerful dashboards for in-depth cost analysis.<\/p>\n<h3><strong>Objective<\/strong><\/h3>\n<p>The goal is to create cost and usage dashboards in QuickSight to obtain a detailed overview of the services used in all AWS accounts within the AWS Organization. This will enable analysis of cost increases in specific services based on resource ID and usage type.<\/p>\n<h3><strong>Solution<\/strong><\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-70309\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.17.30\u202fPM-1024x156.png\" alt=\"Flow Diagram\" width=\"1118\" height=\"170\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.17.30\u202fPM-1024x156.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.17.30\u202fPM-300x46.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.17.30\u202fPM-768x117.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.17.30\u202fPM-624x95.png 624w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.17.30\u202fPM.png 1480w\" sizes=\"(max-width: 1118px) 100vw, 1118px\" \/><\/p>\n<h2><strong>Description<\/strong><\/h2>\n<p>1. AWS Data Export is configured to push AWS Cost and Usage Report (CUR) to an S3 bucket.<br \/>\n2. AWS Glue Crawler is set up to crawl the CUR from the S3 bucket and store it in its database and tables, which Athena then uses for querying.<br \/>\n3. AWS QuickSight uses Athena as a data source to execute queries, analyze data, and publish insights on dashboards.<\/p>\n<h2><strong>Setup<\/strong><\/h2>\n<p>1. <strong>Data Export<\/strong><br \/>\nAWS enables the extraction of CUR data from an AWS account and stores it in an S3 bucket for processing and analysis.<\/p>\n<h4><strong>Configuration Details<\/strong><\/h4>\n<p>a<strong>. Granularity<\/strong>: Data is exported with hourly granularity to allow detailed cost analysis and spike detection.<br \/>\nb. <strong>Automatic Refresh:<\/strong> AWS updates the data daily into the S3 bucket at the specified export path.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"wp-image-70310 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM.png\" alt=\"abc\" width=\"1564\" height=\"400\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM.png 1564w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM-300x77.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM-1024x262.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM-768x196.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM-1536x393.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.11.54\u202fPM-624x160.png 624w\" sizes=\"(max-width: 1564px) 100vw, 1564px\" \/><\/p>\n<h4><strong>Folder Structure<\/strong><\/h4>\n<p>a. AWS creates a data folder within the specified S3 path.<br \/>\nb. Inside the data folder, separate sub-folders are created for each month.<br \/>\nc. The data for each month is refreshed daily in its respective sub-folder, ensuring up-to-date information is available.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-70313 \" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-07-at-10.43.03\u202fAM.png\" alt=\"a\" width=\"1354\" height=\"545\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-07-at-10.43.03\u202fAM.png 1530w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-07-at-10.43.03\u202fAM-300x121.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-07-at-10.43.03\u202fAM-1024x412.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-07-at-10.43.03\u202fAM-768x309.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-07-at-10.43.03\u202fAM-624x251.png 624w\" sizes=\"(max-width: 1354px) 100vw, 1354px\" \/><\/p>\n<p>2. <strong>Crawler Configuration<\/strong><br \/>\nAWS Glue Crawlers are used to scan the S3 bucket, identify Parquet or Gzip files, and update the AWS Glue Data Catalog for efficient querying.<\/p>\n<h4><strong>Configuration Details<\/strong><\/h4>\n<p>a. The crawler runs daily at 4:30 AM UTC(Can be run anytime), ensuring the latest data from S3 is available in Athena.<br \/>\nb.\u00a0After execution, the updated data is accessible in Athena for querying and analysis.<\/p>\n<div id=\"attachment_70311\" style=\"width: 1530px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-70311\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-70311 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.04.58\u202fPM.png\" alt=\"a\" width=\"1520\" height=\"946\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.04.58\u202fPM.png 1520w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.04.58\u202fPM-300x187.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.04.58\u202fPM-1024x637.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.04.58\u202fPM-768x478.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.04.58\u202fPM-624x388.png 624w\" sizes=\"(max-width: 1520px) 100vw, 1520px\" \/><p id=\"caption-attachment-70311\" class=\"wp-caption-text\">b<\/p><\/div>\n<p>3. <strong>QuickSight Data Source Setup<\/strong><br \/>\nAWS QuickSight connects to Athena, enabling direct querying and visualization of cost data for actionable insights.<\/p>\n<h4><strong>Configuration Details<\/strong><\/h4>\n<p>a. Athena is set up as the primary data source in QuickSight.<br \/>\nb. A custom query is created in QuickSight\u2019s dataset to fetch required data.<br \/>\nc. The dataset query is scheduled to run daily at 6:00 AM UTC, ensuring the latest data is available for dashboard updates.<\/p>\n<p>4. <strong>Analysis and Dashboard Creation<\/strong><br \/>\nQuickSight Analyses transform raw data into interactive dashboards and reports, allowing users to explore cost trends based on usage type, resource, and linked accounts.<\/p>\n<h4><strong>Setup Details<\/strong><\/h4>\n<p>1. A QuickSight Analysis is created to calculate service costs based on linked accounts, usage type, and resource ID.<br \/>\n2. Interactive dashboards are built based on use cases and shared with end users.<\/p>\n<h3><strong>Usage Based Dashboards:<\/strong><\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-70317 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM.png\" alt=\"a\" width=\"1552\" height=\"682\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM.png 1552w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM-300x132.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM-1024x450.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM-768x337.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM-1536x675.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.34.02\u202fPM-624x274.png 624w\" sizes=\"(max-width: 1552px) 100vw, 1552px\" \/><\/p>\n<p><strong>Resource Based Dashboards:<br \/>\n<\/strong><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"wp-image-70318 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.09.54\u202fPM.png\" alt=\"a\" width=\"1534\" height=\"704\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.09.54\u202fPM.png 1534w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.09.54\u202fPM-300x138.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.09.54\u202fPM-1024x470.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.09.54\u202fPM-768x352.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.09.54\u202fPM-624x286.png 624w\" sizes=\"(max-width: 1534px) 100vw, 1534px\" \/><\/p>\n<h2><strong>What and Why to Use Amazon Q in QuickSight?<\/strong><\/h2>\n<p>Amazon Q is an advanced Business Intelligence (BI) tool in QuickSight that enhances data analysis with Natural Language Processing (NLP) and generative AI capabilities. It allows users to interact with data intuitively by asking questions in plain English, generating insights, and creating data-driven stories effortlessly.<\/p>\n<h4><strong>Capabilities of Amazon Q in QuickSight<\/strong><\/h4>\n<p>1<strong>. Build dashboards using natural language<\/strong> \u2013 Users can create and modify dashboards by simply describing what they need.<br \/>\n2<strong>. Create Amazon Q Topics<\/strong> \u2013 Define specific topics for in-depth data analysis.<br \/>\n3<strong>. View executive dashboard summaries<\/strong> \u2013 Quickly generate summaries for high-level insights.<br \/>\n4. <strong>Build and share generative data stories \u2013<\/strong> Automatically create narratives based on data trends.<\/p>\n<h4><strong>Steps to Enable Amazon Q in QuickSight<\/strong><\/h4>\n<p>1. The Admin plan in QuickSight includes only the Q&amp;A capability of Amazon Q.<br \/>\n2. To access advanced features such as AI-driven dashboard creation and executive summaries, users must be added to the Admin Pro group.<br \/>\n3. Once added to the Admin Pro group, all users in that group gain full access to Amazon Q features, ensuring that only those who need advanced BI capabilities have access, optimizing cost management.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"wp-image-70320 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM.png\" alt=\"a\" width=\"1548\" height=\"666\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM.png 1548w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM-300x129.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM-1024x441.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM-768x330.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM-1536x661.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/03\/Screenshot-2025-03-09-at-7.38.55\u202fPM-624x268.png 624w\" sizes=\"(max-width: 1548px) 100vw, 1548px\" \/><\/p>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>By integrating AWS CUR, Glue, Athena, and QuickSight, a scalable and automated cost analysis solution is established, overcoming the limitations of AWS Cost Explorer. The implementation of Amazon Q further enhances the analytical experience, enabling deeper insights and AI-driven storytelling. This setup empowers cost trend monitoring effectively and facilitates proactive AWS spending optimization.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Challenges with Existing Cost Explorer AWS Cost Explorer provides resource-based cost insights, but it has a limitation: it only allows viewing cost data for individual resources for the last 14 days. If cost trends need to be analyzed over a longer period and specific resources contributing to cost increases beyond two weeks need to be [&hellip;]<\/p>\n","protected":false},"author":2053,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":50},"categories":[2348],"tags":[7137,1892,7136],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/70321"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/2053"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=70321"}],"version-history":[{"count":7,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/70321\/revisions"}],"predecessor-version":[{"id":70654,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/70321\/revisions\/70654"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=70321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=70321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=70321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}