Aws/cost Explorer
@webframp/aws/cost-explorerv2026.05.20.1
01README
Query AWS Cost Explorer for actual spend analysis by service, usage type, and time period. Identifies top cost drivers and spend trends.
Authentication
Uses the default AWS credential chain.
Required IAM Permissions
ce:GetCostAndUsage
Usage
swamp model create @webframp/aws/cost-explorer aws-costs \
--global region=us-east-1
# Spend breakdown by service (last 30 days)
swamp model method run aws-costs get_cost_by_service
# Drill into a service's usage types
swamp model method run aws-costs get_cost_by_usage_type \
--input service=Amazon Elastic Compute Cloud - Compute
# Daily cost trend
swamp model method run aws-costs get_cost_trend --input days=30
# Top 20 cost drivers
swamp model method run aws-costs get_top_cost_drivers02Models
@webframp/aws/cost-explorerv2026.04.12.1aws/cost_explorer.ts
fn get_cost_by_service()
Break down spend by AWS service for the given number of days
fn get_cost_by_usage_type(service: string)
Break down a single service's spend by usage type
| Argument | Type | Description |
|---|---|---|
| service | string | AWS service name to drill into |
fn get_cost_trend()
Show daily cost trend and determine if spend is increasing, decreasing, or stable
fn get_top_cost_drivers()
Identify the top cost drivers by service and usage type combination
fn get_cost_comparison()
Compare costs between current and previous period by service
Resources
costs(1h)— AWS Cost Explorer query results
03Previous Versions
2026.04.22.1Apr 22, 2026
updated platforms
2026.04.14.1Apr 14, 2026
Modified 1 models
2026.04.13.1Apr 13, 2026
2026.04.12.1Apr 12, 2026
04Stats
A
100 / 100
Downloads
62
Archive size
275.0 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels