Skip to content

Modify headers on millions of S3 objects. Node.js npm utility for programmatically modifying S3 object headers.

Notifications You must be signed in to change notification settings

iFixit/head-blaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

head-blaster

A programmatic way to alter many s3 objects in many buckets in parallel

Usage:

node list-objects.js --buckets=some-bucket-name,other-bucket > objects.list
node head-blaster.js --file=objects.list --concurrency=3 --operation=./operations/fix-cache-headers.js > output.log

where objects.list is a file like:

bucket-name:key/path
bucket-name:key/path
...

In between listing and modifying is a good time to trim down the list if you only want to affect objects with a certain key prefix or something.

Make new npm modules as needed for different operations, see examples in operations/*.js.

About

Modify headers on millions of S3 objects. Node.js npm utility for programmatically modifying S3 object headers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published