Skip to content

Instantly share code, notes, and snippets.

@sumgr0
Forked from random-robbie/s3tko.sh
Created August 27, 2019 04:44
Show Gist options
  • Save sumgr0/a53d48e41577cb94e4bc4bf35b4708dc to your computer and use it in GitHub Desktop.
Save sumgr0/a53d48e41577cb94e4bc4bf35b4708dc to your computer and use it in GitHub Desktop.
#!/bin/bash
touch index.html
touch error.html
aws s3api create-bucket --bucket my-bucket --region us-east-1
aws s3 website s3://my-bucket/ --index-document index.html --error-document error.html
aws s3 cp index.html s3://mybucket --acl public-read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment