Static Web Hosing using Amazon S3

About

  • Advantage: No need to run Web server
  • Host the static resources: HTML, CSS, JavaScript, image files, etc.
  • http://{your-bucket-name}.s3-website.{region}.amazonaws.com

Steps

  • Create an S3 bucket
  • Upload web resources to the bucket
  • Add a bucket policy to allow public read 
    • Permission > Bucket Policy
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow", 
            "Principal": "*", 
            "Action": "s3:GetObject", 
            "Resource": "arn:aws:s3:::[YOUR_BUCKET_NAME]/*" 
        } 
    ] 
}
  • Enable the web hosting
    • Properties > Enable "Static Website Hosting"
    • Select "Use this bucket to host a website"

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer