mcpField
C
cost-estimator

cost-estimator

github.com/aws-samplesCloud & DevOps5355 installsUpdated 9w ago
Repository

About cost-estimator

A cost-estimation skill for AWS CDK projects that scans resources, retrieves current AWS pricing, and produces Excel and Markdown reports. It is for teams estimating infrastructure or Bedrock model costs, including comparisons across regions.

Key features

  1. 01Scans AWS resources in CDK code
  2. 02Retrieves pricing from AWS Bulk API
  3. 03Generates Excel and Markdown reports
  4. 04Supports standard and China regions
  5. 05Estimates Bedrock model costs

Use cases

  1. 01Estimating CDK infrastructure costs
  2. 02Comparing costs across AWS regions
  3. 03Preparing pricing reports
  4. 04Calculating Bedrock model costs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aws-samples/sample-agent-skills-for-builders --skill cost-estimator

After installing, type/cost-estimatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
bedrock-pricing.md
cdk-analysis.md
pricing-api.md
report-generation.md
scripts/
bedrock-fallback-prices.json
fetch-aws-pricing.py
generate-pricing-excel.py

Details

From the project README

Cost Estimator

AWS cost estimation tool for CDK projects with real-time pricing from AWS Price List Bulk API.

When to Apply

Reference this skill when:

  • Estimating AWS infrastructure costs
  • Analyzing CDK project resource costs
  • Generating pricing reports (Excel/Markdown)
  • Comparing costs across AWS regions
  • Calculating Bedrock model costs

How It Works

  1. Confirm Region - Select target AWS region(s)
  2. Scan Resources - Analyze CDK code for AWS resources
  3. Fetch Pricing - Get real-time prices from AWS Bulk API
  4. Generate Reports - Create Excel and Markdown reports

Prerequisites

  • AWS CDK project with synthesizable stacks
  • Python 3.8+ with pandas, openpyxl
  • AWS credentials (for pricing API access)

Usage

# Fetch AWS pricing data
python scripts/fetch-aws-pricing.py --region us-east-1

# Generate Excel report
python scripts/generate-pricing-excel.py --input resources.json --output costs.xlsx

Output Files

Reports are saved to cost-estimates/:

  • cost-estimate-{region}.xlsx - Detailed Excel report
  • cost-estimate-{region}.md - Markdown summary

Supported Regions

  • All standard AWS regions
  • China regions (cn-north-1, cn-northwest-1) with CNY pricing

References

Comments

Markdown supported