Accelerate website access with S3 and CloudFront
News
On this topic, you can get all the gist in this video(From Youtube).
With the update of awscli, the script changes as follows
shell
# update s3 file
aws s3 sync --delete LOCALDIRECTORY s3URI --region YOURREGION
shell
# expired cloudfront cache file
aws cloudfront create-invalidation --distribution-id YOURID --paths /*