Oriel — AI & technology worth noticing, every day.

Don't Try This at Home: What Happened When I Sent Kiro to Work and Went Gardening

Post · https://dev.to/aws-builders/dont-try-this-at-home-what-happened-when-i-sent-kiro-to-work-and-went-gardening-131c

There is a special kind of confidence that comes from an AI development environment that just works....

First seen by Oriel on .

AI summary

The author describes how an AI-generated image-resizing Lambda triggered itself through S3 writes, and explains the event filters, handler guard, and observability checks used to prevent and detect the loop.

  • The recipe service stores uploaded photos in S3; an ObjectCreated-triggered Lambda creates 320px thumbnails and roughly 1024px display images.
  • Writing derivatives into the trigger bucket caused each output to invoke the Lambda again, multiplying work until AWS detected the recursive loop and disabled invocations.
  • The fix filters notifications to the -orig suffix and makes the handler skip keys without that suffix; user photos also use a separate prefix from recipe originals.
  • Post-deploy checks should monitor Invocations, ConcurrentExecutions, and Duration, with CloudWatch alarms for invocation counts, concurrency, and RecursiveInvocationsDropped.
  • The incident caused no data loss and only cents in conversion costs; the author argues that AI-generated code still requires human architectural review.

#aws lambda #amazon s3 #kiro #serverless

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
DEV Community4842060https://dev.to/aws-builders/dont-try-this-at-home-what-happened-when-i-sent-kiro-to-work-and-went-gardening-131c Read discussion