Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created April 13, 2018 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save random-robbie/9207d0f293adb704b9a11486c7529a6e to your computer and use it in GitHub Desktop.
Save random-robbie/9207d0f293adb704b9a11486c7529a6e to your computer and use it in GitHub Desktop.
#!/bin/bash
aws s3api create-bucket --bucket z4.net --acl public-read --region us-west-2
wget https://gist.githubusercontent.com/random-robbie/dfc39ba1ee9c004f65b961bdecfacf9c/raw/62c65927d20a022320f76fa07a435148a0349aee/redirect.json
aws s3api put-bucket-website --bucket z4.net --website-configuration file://redirect.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment