Last active
January 8, 2019 10:46
-
-
Save ultimagriever/c42bd142f270a068fa8e1cc80569085b 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
APP_DEV=static.intermail.dev.$1.jp7.com.br | |
echo "Creating S3 development bucket " $APP_DEV"...\n" | |
aws s3api create-bucket --bucket $APP_DEV --region us-east-1 | |
echo "Setting Static Web Hosting...\n" | |
aws s3api put-bucket-website --bucket $APP_DEV --website-configuration file://website-config.json | |
echo "Bucket" $APP_DEV "created, visit AWS Console to create IAM user for said bucket.\n" | |
APP_QA=static.intermail.qa.$1.jp7.com.br | |
echo "Creating S3 Quality Assurance bucket " $APP_QA"...\n" | |
aws s3api create-bucket --bucket $APP_QA --region us-east-1 | |
echo "Setting Static Web Hosting...\n" | |
aws s3api put-bucket-website --bucket $APP_QA --website-configuration file://website-config.json | |
echo "Bucket" $APP_QA "created, visit AWS Console to create IAM user for said bucket.\n" | |
APP=static.intermail.$1.jp7.com.br | |
echo "Creating S3 production bucket " $APP"...\n" | |
aws s3api create-bucket --bucket $APP --region us-east-1 | |
echo "Setting Static Web Hosting...\n" | |
aws s3api put-bucket-website --bucket $APP --website-configuration file://website-config.json | |
echo "Setting Versioning...\n" | |
aws s3api put-bucket-versioning --bucket $APP --versioning-configuration Status=Enabled | |
echo "Bucket" $APP "created, visit AWS Console to create IAM user for said bucket.\n" |
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
{ | |
"IndexDocument": { | |
"Suffix": "index.html" | |
}, | |
"ErrorDocument": { | |
"Key": "404.html" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment