Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Last active May 16, 2020 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save random-robbie/1140d7d4bb53285dd6192c62cb6ea2ed to your computer and use it in GitHub Desktop.
Save random-robbie/1140d7d4bb53285dd6192c62cb6ea2ed to your computer and use it in GitHub Desktop.
#!/bin/bash
touch index.html
touch error.html
aws s3api create-bucket --bucket $1 --region us-east-1
aws s3 website s3://$1/ --index-document index.html --error-document error.html
aws s3 cp index.html s3://$1 --acl public-read
aws s3 cp error.html s3://$1 --acl public-read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment