Wasabi Kung-fu (or S3)
Install s3cmd (you'll need access key and such)
brew install s3cmd
s3cmd --configure
Recursively delete file matching a pattern
s3cmd ls -r s3://assets.warmlyyours.com/production/2015/05/29/ | grep 'yml$' | awk '$4' | while read file; do s3cmd rm $file; done
s3cmd rm -r s3://heatwave-assets.warmlyyours.com/public_assets
Globally set acl for a group of files
s3cmd setacl s3://assets.warmlyyours.com/ --acl-public --recursive
Set caching and storage headers
s3cmd modify --add-header="Cache-Control:public, max-age=31536000" s3://assets.warmlyyours.com/production/2021/11/22/11/30/42/c584fa36-3e6e-44b2-b9e3-0926e3b3b965/file