Cost Explorer Automation
Cost Explorer Automation
The Cost Explorer Automation is a Continuous automation that collects and processes AWS cost data, powering SkySaver’s cost analysis features.
How It Works
graph LR
A[Cost Explorer Automation] --> B[Query AWS Cost Explorer API]
B --> C[Process Cost Data]
C --> D[Store in SkySaver]
D --> E[Power Dashboards & Reports]- Collect - Queries the AWS Cost Explorer API for cost and usage data
- Process - Aggregates data by service, account, region, and tags
- Store - Saves processed data for visualization
- Display - Powers dashboards, charts, and reports
Data Collected
| Data Type | Description | Refresh Rate |
|---|---|---|
| Cost by Service | Spending breakdown by AWS service | Daily |
| Cost by Account | Per-account spending | Daily |
| Cost by Region | Geographic cost distribution | Daily |
| Cost by Tag | Tag-based cost allocation | Daily |
| Usage Metrics | Resource utilization data | Daily |
| Recommendations | Rightsizing and savings suggestions | Daily |
Prerequisites
To use the Cost Explorer Automation:
Enable Cost Explorer - AWS Cost Explorer must be activated in your AWS account
IAM Permissions - The SkySaver role needs Cost Explorer API permissions:
ce:GetCostAndUsagece:GetRightsizingRecommendationce:GetSavingsPlansPurchaseRecommendationce:GetReservationPurchaseRecommendation
Cost and Usage Reports (Optional) - For enhanced detail, configure CUR:
s3:ListBuckets3:GetObjects3:GetBucketLocation
Configuration
Note: Enabling the Cost Explorer Automation also makes the Cost Explorer item appear in the main navigation menu. If you don’t see Cost Explorer in the menu, enable this automation first.
Verifying Permissions
- Navigate to Tenant Management > Accounts tab
- Click the ⋯ menu on the account and select Test Connection
- Verify that the account shows “Configured”
Data Availability
| Data Type | Availability |
|---|---|
| Current month costs | Updated daily |
| Previous month costs | Available after month end |
| Historical costs | Up to 12 months |
| Recommendations | Updated daily |
Cost Allocation Tags
For tag-based cost breakdown, enable Cost Allocation Tags in AWS:
- Go to AWS Billing Console > Cost Allocation Tags
- Activate tags you want to track
- Wait 24-48 hours for data to populate
Understanding the Data
Cost Metrics
| Metric | Description |
|---|---|
| Unblended Cost | Actual usage costs |
| Blended Cost | Averaged costs for consolidated billing |
| Amortized Cost | Upfront costs spread over time |
Recommendations
| Type | Description |
|---|---|
| Rightsizing | Suggestions to change instance types |
| Reserved Instances | RI purchase recommendations |
| Savings Plans | SP purchase recommendations |
Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
| No cost data | Cost Explorer not enabled | Enable in AWS Billing Console |
| Missing recommendations | Insufficient history | Wait for 14+ days of data |
| Stale data | API latency | Data updates overnight; check tomorrow |
| Permission error | IAM role missing permissions | Update CloudFormation template |
Related Topics
- Cost Explorer - Using the Cost Explorer UI
- AWS Account Setup - IAM role configuration
- Dashboard - Viewing cost widgets