Back to feed
Dev.to
Dev.to
7/23/2026
The AWS Cleanup We Keep Putting Off (I Let an Agent Do It)

The AWS Cleanup We Keep Putting Off (I Let an Agent Do It)

Short summary

A billing alert led the author to discover years of stale AWS CloudFormation stacks quietly accumulating cost. Instead of manual console cleanup, they used Kiro's Agent Toolkit for AWS to list, confirm, and delete stacks via natural language. The agent ran scripts in a sandbox, checked deletion status in parallel, and intelligently diagnosed a DELETE_FAILED by pulling stack events and identifying a non-empty versioned S3 bucket.

  • Billing alert revealed 12 stale CloudFormation stacks, some dating back to 2014
  • Used Kiro Agent Toolkit for AWS to automate stack listing, confirmation, and deletion
  • Agent ran in sandbox, handled failures by pulling specific error events and diagnosing root cause

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more