Created
July 16, 2017 20:22
-
-
Save tolleiv/c60a5eec2e2a227625b68301586fe66a to your computer and use it in GitHub Desktop.
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
set -e # Fail fast | |
DISTRIBUTION_ID=xxxxxxxxxxxxxxxx | |
BUCKET_NAME=xxxxxxxxxxxxxx | |
aws s3 sync --acl "public-read" --sse "AES256" public/ s3://$BUCKET_NAME --exclude 'post' | |
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths /index.html / /page/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment