Skip to content
Skills Library
Finance & accounting · Analysis

aws-cost-ops

/aws-cost-ops

AWS Cost Explorer — spending analysis, service breakdowns, forecasts, cost anomalies. Use when analyzing AWS spending, investigating cost spikes, reviewing network cost drivers like NAT Gateway, or forecasting next month's bill.

Repository
netclaw ↗
Licence
Apache-2.0
Last repository change
25.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

AWS Cost Explorer — spending analysis, service breakdowns, forecasts, cost anomalies. Use when analyzing AWS spending, investigating cost spikes, reviewing network cost drivers like NAT Gateway, or forecasting next month's bill.

Original author description

AWS Cost Explorer — spending analysis, service breakdowns, forecasts, cost anomalies. Use when analyzing AWS spending, investigating cost spikes, reviewing network cost drivers like NAT Gateway, or forecasting next month's bill.

How it works

  1. MCP Server
  2. Key Capabilities
  3. Workflow: Network Cost Analysis
  4. Workflow: Cost Anomaly Investigation
  5. Workflow: Monthly Cost Review
  6. Common AWS Network Cost Drivers
  7. Cost Optimization Tips
  8. Important Rules
  9. Environment Variables
  10. Failure Behavior
Original SKILL.md headings · 93 lines, 654 words
SKILL.md preview
---
name: aws-cost-ops
description: "AWS Cost Explorer — spending analysis, service breakdowns, forecasts, cost anomalies. Use when analyzing AWS spending, investigating cost spikes, reviewing network cost drivers like NAT Gateway, or forecasting next month's bill."
version: 1.0.0
license: Apache-2.0
tags: [aws, cost-explorer, billing, finops, cost-optimization]
---

# AWS Cost Operations

## MCP Server

- **Command**: `uvx awslabs.cost-explorer-mcp-server@latest` (stdio transport)
- **Requires**: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION` (or `AWS_PROFILE`)
- **Note**: Cost Explorer API charges $0.01 per request — be mindful of query volume

## Key Capabilities

- **Cost breakdown**: Spending by service, account, region, or tag
- **Time series**: Daily, monthly, or custom date range cost trends
- **Forecasts**: Predicted spend based on historical patterns
- **Anomaly detection**: Unusual spending spikes
- **Filtering**: Narrow by service (EC2, VPC, TGW, NAT GW, VPN, etc.)

## Workflow: Network Cost Analysis

When a user asks "how much is our AWS network costing?":

1. **Total network spend**: Cost breakdown for VPC, Transit Gateway, NAT Gateway, VPN, ELB, Direct Connect
2. **Trend**: Monthly trend for network services over last 6 months
3. **Top services**: Rank network services by spend (NAT GW data processing is often #1)
4. **Per-region**: Break down network costs by region
5. **Forecast**: Projected network spend for next month
6. **Report**: Network cost dashboard with optimization recommendations

## Workflow: Cost Anomaly Investigation

When investigating unexpected charges:

1. **Daily breakdown**: Get daily costs for the spike period
2. **Service drill-down**: Which service caused the spike?
3. **Region check**: Was the spike in a specific region?
4. **Correlate**: Cross-reference with CloudTrail for resource creation events
5. **Report**: Root cause and recommended action

## Workflow: Monthly Cost Review

For regular FinOps review:

1. **Month-over-month**: Compare current vs previous month spending
2. **Service breakdown**: Top 10 services by cost
3. **Network focus**: VPC, TGW, NAT GW, VPN, ELB, Direct Connect costs
4. **Growth rate**: Percentage change per service
5. **Forecast**: Next month projection
6. **Report**: Executive cost summary with trends

## Common AWS Network Cost Drivers

| Service | Cost Component | Typical Driver |
|---------|---------------|----------------|
| NAT Gateway | Data processing | $0.045/GB — largest network cost for most |
| NAT Gateway | Hourly charge | $0.045/hr per NAT GW |
| Transit Gateway | Data processing | $0.02/GB per attachment |
| Transit Gateway | Hourly charge | $0.05/hr per attachment |
| VPN | Hourly charge | $0.05/hr per VPN connection |
| VPN | Data transfer | $0.09/GB outbound |
| ELB (ALB) | Hourly + LCU | $0.0225/hr + LCU charges |
| ELB (NLB) | Hourly + NLCU | $0.0225/hr + NLCU charges |
| Direct Connect | Port hours | $0.03-$0.30/hr depending on speed |
| Data Transfer | Cross-AZ | $0.01/GB each direction |
| Data Transfer | Cross-Region | $0.02/GB |
| Data Transfer | Internet out | $0.09/GB (first 10TB) |

## Cost Optimization Tips

| Finding | Recommendation |
|---------|---------------|
| High NAT GW data processing | Use VPC endpoints for S3/DynamoDB (free) |
| Multiple NAT GWs per AZ | Consolidate if traffic allows |
| Idle VPN connections | Delete unused VPN tunnels |
| Cross-AZ traffic | Co-locate resources in same AZ where possible |
| Oversized ELB | Right-size based on actual LCU/NLCU usage |
| Unused EIPs | Release unattached Elastic IPs ($0.005/hr) |

## Important Rules

- **Cost Explorer API charges $0.01 per request** — batch queries, avoid excessive polling
- **Data lag** — Cost data can be delayed up to 24 hours
- **Unblended vs amortized** — clarify which cost type the user wants
- **Record in GAIT** — log cost investigations for audit trail

## Environment Variables

- `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION` (or `AWS_PROFILE`)

## Failure Behavior

- On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
- For a confirmed read-only call, check connectivity and retry once if appropriate. For any call that changes state or sends a message, a timeout does not prove the action failed: inspect current state or delivery status before retrying, preserve the required approval/change gates, and do not repeat an action whose outcome is unknown.

Versions

The database has no other skills named aws-cost-ops.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version ae7beed0e1d6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100aws-cost-investigation
    Diagnoses AWS cost spikes and audits accounts for ongoing waste. Cost Explorer + Cost & Usage Report query patterns, anomaly detection, the cost-trap inventory (forever log groups, NAT egress, unattached EBS/EIPs, idle ELBs, incomplete S3 multipart uploads, gp2/gp3 migration),…
  • 100cost-tracking
    Track and report Claude Code token usage, spending, and budgets from the local ECC cost-tracker metrics log. Use when the user asks about costs, spending, usage, tokens, budgets, or cost breakdowns by model, session, or date.
  • 100cost-tracking
    Track and report Nemo Code token usage, spending, and budgets from the local ECC cost-tracker metrics log. Use when the user asks about costs, spending, usage, tokens, budgets, or cost breakdowns by model, session, or date.
  • 100auditing-aws-cost
    Runs an exhaustive evidence-based AWS cost and tagging audit: reads Terraform or CloudFormation first, then validates against the live account with read-only API calls, finds drift and shadow resources, walks every service family for waste and right-sizing, checks tag…
  • 100cost-optimization-analyzer
    Analyze cost optimization analyzer operations. Auto-activating skill for AWS Skills. Triggers on: cost optimization analyzer, cost optimization analyzer Part of the AWS Skills skill category. Use when analyzing or auditing cost optimization analyzer. Trigger with phrases like…
  • 90database-cloud-optimization-cost-optimize
    Reduce cloud infrastructure costs on AWS, Azure, and GCP while maintaining performance and reliability, by analyzing spending, identifying savings opportunities, and implementing cost-effective architectures. Use when cloud spending needs to come down or a cost review is due.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.