/plugin marketplace add infracost/agent-skills
/plugin install infracost@infracost
/exit # you need to restart Claude Code
Create a 3 tier web app on AWS using ECS & Postgres. It needs to be compliant with all of my organization's finops and tagging policies, and cost less than $100/mo
Combobulating…
→ Done... 5 resources created.
┌───────────────────────────────────┬────────┐
│ Resource │ Cost │
├───────────────────────────────────┼────────┤
│ NAT Gateway │ $32.85 │
│ ECS Fargate (2 services, ARM64) │ $27.03 │
│ ALB │ $16.43 │
│ RDS db.t4g.micro (gp3, single-AZ) │ $13.98 │
│ Secrets Manager │ $0.40 │
│ Total │ $90.69 │
└───────────────────────────────────┴────────┘
Policy Compliance
All 14 policies pass. Key decisions made:
- Graviton (ARM64) on ECS task definitions & RDS (db.t4g.micro) — ~20% cheaper than x86
- gp3 storage on RDS — 20% cheaper than gp2
- Single-AZ RDS — for Dev, saves ~50% vs multi-AZ
- HTTP → HTTPS redirect on ALB (ELB.1 compliance)
- Secrets Manager for DB password — not env vars
- RDS encryption at rest (storage_encrypted = true)
- copy_tags_to_snapshot = true on RDS
- CloudWatch log exports enabled on RDS
- propagate_tags = "TASK_DEFINITION" on ECS services