← All projects
MLOps & Cloud Advanced

CloudPenny

AWS cost optimiser dashboard with Terraform and Lambda

Find idle instances, oversized volumes and forgotten snapshots across an AWS account — and see what fixing them would save.

SHIPSTACK · PROJECT CloudPenny AWS cost optimiser dashboardwith Terraform and Lambda Advanced MLOps & Cloud 1 EventBridge 2 Scanner Lambdas 3 API Gateway 4 Dashboard 5 milestones

The scenario

CloudPenny is a serverless cost-hygiene tool. Scheduled Lambda functions scan the account, an API Gateway serves the findings, and a small dashboard ranks savings opportunities. Everything is provisioned with Terraform, so you can deploy it to any account and tear it down in one command.

System architecture

01 EventBridge Nightly schedule
02 Scanner Lambdas EC2, EBS, snapshots
03 DynamoDB Findings
04 API Gateway Read API
05 Dashboard Savings ranked

High-level flow of CloudPenny, from input to output.

What you will learn

  • Terraform modules for serverless apps
  • Least-privilege IAM
  • Cost Explorer and resource APIs

What you will build

  • Scanner Lambdas
  • Findings API
  • Savings dashboard

Build plan

  1. Terraform skeleton
  2. First scanner
  3. API
  4. Dashboard
  5. More scanners

Tech stack

TerraformAWS LambdaAPI GatewayDynamoDBCost Explorer API