The `aws s3 sync` command…

From the manual: ‘Syncs directories and S3 prefixes. Recursively copies new and updated files from the source directory to the destination. Only creates folders in the destination if they contain one or more files.’

OMFG, static copy from a directory to an S3 bucket. No middle man / process required. #winning

http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html

 

Process:

  • Create an AWS API User, create access key
  • aws configure –profile {your-profile-name}
  • aws s3 sync ./ s3://{existing bucket name}/{prefix} –profile {your-profile-name}
  • Watch your local contents sync up to the bucket.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.