What problem does it solve? Waiting on AWS Image Builder builds and debugging failures requires repetitive console checks and manual evidence gathering. This Skill automates durable polling of image builds to terminal state, captures status evidence to disk, and locates retained EC2 builder instances after failed builds so debugging can start immediately. ## Core Features & Use Cases - Durable build polling: Poll an Image Builder image ARN with status-change logging, writing image.json, status.txt, summary.json, and ami-id.txt to a persistent output directory. - Retained builder discovery: Find the latest EC2 instance tagged with the image build ARN when terminate-on-failure is disabled, enabling SSM-based failure investigation. - Clean exit semantics: Exit codes distinguish AVAILABLE (0), FAILED/CANCELLED (1), and timeout (124) for scripting and handoff. - Use Case: After triggering an Image Builder bake from a repo-native pipeline, run the poll script to wait for completion; on failure, immediately capture the retained builder instance ID and hand off to SSM replay or AMI validation workflows. ## Quick Start Ask the agent to poll your Image Builder image ARN with your AWS profile and region, then find the retained builder instance if the build fails.