one-shot-s3-cleanup
So I made a mistake in an app I am working on and ended up creating thumbnails
of thumbnails, and thumbnails of thumbnails of thumbnails… etc. I was able to
delete them all, but I wanted to make a one-shot script to do it.
[1]
One Shot App # [2]
I got the idea of the one shot app from Simon
Willison [3] and
replicated his setup in a chatgpt project
[4]
Initial Prompt # [5]
a mistake was made in my s3 bucket and I've created a bunch of extra files
write a script that deletes all files that contain _thumb_thumb
⬢ [devtainer] ❯ aws s3 ls s3://dropper
2024-12-29 14:32:32 16158 02271f4c-be18-4bea-b23e-d00f9fe42b9f.webp
2025-01-11 14:20:49 2878 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb.webp
2025-01-11 14:21:17 2858 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb_thumb.webp
2025-01-11 14:21:44 2856 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb_thumb_thumb.webp
2025-01-11 14:21:44 2856 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb_thumb_thumb_thumb.webp
2024-12-27 10:25:36 2812 06422c09-d0da...