Skip to content

Instantly share code, notes, and snippets.

@tvandervossen
Created January 13, 2012 08:32
Show Gist options
  • Save tvandervossen/1605091 to your computer and use it in GitHub Desktop.
Save tvandervossen/1605091 to your computer and use it in GitHub Desktop.
Deployment to S3 with CloudFront invalidation using s3cmd 1.1 beta
Sync local-public-dir to bucket-name on S3 and invalidate changed files on CloudFront:
$ ./bin/s3cmd-1.1.0-beta1/s3cmd -c s3.config sync local-public-dir/ s3://bucket-name/ --acl-public --cf-invalidate --rexclude '.svn' --rexclude '.DS_Store'
You can create s3.config with:
$ s3cmd --configure
I keep my s3.config on an encrypted disk image which I mount manually when needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment