-
-
Save tdegrunt/1605311 to your computer and use it in GitHub Desktop.
Deployment to S3 with CloudFront invalidation using s3cmd 1.1 beta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Nifty. How does --cf-invalidate know which distribution to talk to?