問THE PROBLEM
Cloud bills grow quietly. Dev and staging EC2 instances ran 24/7 while being used maybe 10 hours a day. The company needed automated start/stop lifecycles, controllable from an existing Java Spring Boot backend, without handing broad AWS credentials around.
刀THE CUT
I architected a standalone NestJS microservice owning all AWS interaction: IAM-scoped SDK access with least-privilege roles, cron-driven scheduling with per-instance calendars, and a secured REST surface consumed by the Spring Boot backend. Every action is idempotent and logged, so a missed tick never double-fires.
果THE RESULT
Idle compute cost cut on schedule, zero manual instance babysitting, and a clean service boundary — the Java team consumes three endpoints and never touches AWS.
見IN PICTURES
