A simple tool to deploy static websites to Amazon S3 and CloudFront with Gzip and custom headers support (e.g. "Cache-Control"). It uses ETag hashes to check if a file has changed, which makes it optimal in combination with static site generators like Hugo.
If you're looking at
s3deploythen you've probably already seen the
aws s3 synccommand - this command has a sync-strategy that is not optimised for static sites, it compares the timestamp and size of your files to decide whether to upload the file.
Because static-site generators can recreate every file (even if identical) the timestamp is updated and thus
aws s3 syncwill needlessly upload every single file.
s3deployon the other hand checks the etag hash to check for actual changes, and uses that instead.