Skip to content

Kixeye/untar-to-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

untar-to-s3

Utility script for efficiently unpacking a tarball to an S3 bucket.

The script can load most tar files (e.g. .tar, .tar.gz) and uploads all files to an S3 bucket with an optional prefix.

The script will automatically gzip certain file types, and will add a 'Cache-Control' header.

Requirements::
Python 2.7 and above boto3 library (to install: sudo pip install boto3)

For usage overview:

python untar-to-s3.py -h

Example:

export AWS_ACCESS_KEY_ID=<iam account with PubObject permission>
export AWS_SECRET_ACCESS_KEY=<secret from above account>
python untar-to-s3.py web-assets-1.2.23.tar.gz --bucket my-bucket-name --prefix production

About

Script to unpack a tar file to an S3 bucket

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages