cost-estimator
Estimate AWS costs for CDK projects using real-time pricing data. Use when calculating infrastructure costs, generating pricing reports, or analyzing CDK resource costs before deployment.
How do I install this agent skill?
npx skills add https://github.com/aws-samples/sample-agent-skills-for-builders --skill cost-estimatorIs this agent skill safe to install?
- Gen Agent Trust Hubpass
A tool for estimating AWS costs in CDK projects using official AWS Pricing APIs. It includes resource scanning with user confirmation and secure script execution for fetching pricing data and generating Excel reports.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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
- Confirm Region - Select target AWS region(s)
- Scan Resources - Analyze CDK code for AWS resources
- Fetch Pricing - Get real-time prices from AWS Bulk API
- 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 reportcost-estimate-{region}.md- Markdown summary
Supported Regions
- All standard AWS regions
- China regions (cn-north-1, cn-northwest-1) with CNY pricing
References
- CDK Analysis - Resource scanning guide
- Pricing API - AWS Bulk API usage
- Report Generation - Report creation
- Bedrock Pricing - AI model pricing
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator">View cost-estimator on skillZs</a>