Skip to content

SinanCirak/Ccoster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ccoster — AWS Cost Estimator

Ccoster is a React-based AWS cost estimator that parses Terraform files, discovers AWS resources, and calculates monthly costs based on configurable usage inputs. It includes presets, category-level summaries, and region-aware pricing.

Highlights

  • Terraform .tf parsing with automatic resource discovery
  • Category grouping with per-category cost totals
  • Per-resource inputs (Lambda, DynamoDB, S3, API Gateway, CloudFront, Cognito, EC2, Route 53)
  • Usage presets to auto-fill common workloads
  • Region detection from Terraform with type-ahead region selection
  • Real-time cost recalculation
  • S3 + CloudFront deployment via Terraform

Screenshots

Home Resources Inputs Cost Summary Region & Presets

Supported AWS Resources (If Present in Your Terraform)

Ccoster only lists resources detected in your uploaded Terraform file. The estimator supports the following resource types when they exist in your configuration:

  • AWS Lambda Functions
  • AWS DynamoDB Tables
  • AWS S3 Buckets
  • AWS API Gateway (HTTP API)
  • AWS CloudFront Distributions
  • AWS Cognito User Pools
  • AWS EC2 Instances
  • Route 53 Records

How It Works

  1. Upload a Terraform file.
  2. The app parses resources and lists them by category.
  3. You can adjust usage inputs per resource.
  4. Costs update in real time at both category and resource level.
  5. If the region is not detected from Terraform, you can select it manually.

Usage Presets

Presets quickly fill input values for all detected resources:

  • Light Traffic: minimal usage for small sites
  • Standard Site: typical small production workload
  • Growth App: higher traffic application
  • Enterprise: large scale usage

You can still override any individual resource input after applying a preset.

Local Development

npm install
npm run dev

App runs at http://localhost:5173.

Build

npm run build

Terraform Infrastructure

Terraform is included to provision:

  • S3 bucket for static hosting
  • CloudFront distribution with OAC
  • ACM certificate (us-east-1)
  • Route 53 records for ccoster.cirak.ca
cd terraform
cp terraform.tfvars.example terraform.tfvars
terraform init
terraform apply

Pricing Notes

  • The base pricing table uses us-east-1.
  • Other regions apply a multiplier to the base pricing.
  • For exact regional pricing, integrate AWS Pricing API.

Tech Stack

  • React 18
  • Vite
  • AWS (S3, CloudFront, Route 53, ACM)
  • Terraform

License

MIT

About

AWS Price estimate base on tf file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published