You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ This module is compatible with both Terraform (>=1.4) and OpenTofu (>=1.4).
28
28
- Send alerts to SNS with configurable email subscription.
29
29
- Adds CloudWatch Composite Alarms to combine ReadOps, WriteOps, and BurstBalance alerts per EBS volume.
30
30
-**Optional CloudWatch dashboard** with dynamic widgets per volume.
31
+
- Creates Athena Named Queries for EBS cost and usage analysis (requires CUR + Glue + Athena setup).
31
32
- Includes example project and CI workflow with security checks.
32
-
33
33
---
34
34
35
35
## Usage
@@ -134,7 +134,26 @@ The following tags are applied:
134
134
| filtered_volume_ids | List of monitored EBS volume IDs |
135
135
136
136
---
137
+
## Athena Named Queries
138
+
139
+
This module automatically creates useful Athena Named Queries for analyzing EBS costs and usage from the AWS Cost and Usage Report (CUR). These queries help FinOps teams, engineers, and analysts quickly identify optimization opportunities.
|`ebs_cost_by_volumetype`| Summarizes EBS costs by volume type (`gp2`, `gp3`, etc.) |
146
+
|`ebs_cost_by_volume`| Shows the top 20 most expensive EBS volumes |
147
+
|`ebs_monthly_trend`| Displays monthly cost trends over time |
148
+
|`ebs_cost_by_usagetype`| Breaks down costs by usage type (e.g., volumes, snapshots) |
149
+
|`ebs_cost_by_costcenter`| Aggregates costs by CostCenter tag (if CUR tagging is enabled) |
137
150
151
+
These Named Queries appear in the **AWS Athena console** under Saved Queries and can be executed directly or integrated into reporting and dashboard tools.
152
+
153
+
### Using Athena Named Queries
154
+
After deployment, go to the AWS Athena console → Saved Queries → select and run the EBS cost analysis queries.
0 commit comments