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
| #! /bin/bash | |
| set -o nounset | |
| set -o errexit | |
| if [[ $# -lt 3 ]]; then | |
| echo "No arguments supplied." | |
| echo " Example: upgradeFoldByBash: [Service name] [service account] [folder]" | |
| exit 1 | |
| fi |
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
| aws s3 mb s3://${BUCKET} | |
| aws s3 website s3://${BUCKET} --index-document index.html --error-document index.html | |
| aws s3 sync . s3://${BUCKET} --exclude '.*' --exclude '*.md' --exclude '*.json' --delete --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers | |
| #aws s3 rm --recursive s3://${BUCKET} |
NewerOlder