Amazon web services S3
AWS S3 offers “pay as you go” storage. With the awscli
you can manage your S3 buckets
.
Prerequisites
Managing buckets
# Create bucket
aws s3 mb s3://gregjotauprivate
# list bucket content
aws s3 ls gregjotauprivate
# Copy content from bucket to current working directory
aws s3 cp --recursive s3://gregjotauprivate .
# Copy a file to the bucket
aws s3 cp pip-selfcheck.json s3://gregjotauprivate
# Remove / delete bucket
aws s3 rb --force s3://gregjotauprivate
Hosting a static website
# Sync a folder to bucket and make available as website
aws s3 sync . s3://statwebs/ --delete --exclude "*.git/*" --exclude "*.idea/*"
aws s3 website s3://statwebs/ --index-document index.html
Be sure to make the files and not only the bucket public, I did that through the web interface.
Then, go to http://<bucket_name>.s3-website-<region>.amazonaws.com
See the docs for more detail.