How to Set Up a Simple Static Website on AWS S3: A Beginner’s Guide

Hey there! 👋 If you want to get a website live quickly without fuss or cost, AWS S3 is your best friend. It’s perfect for hosting simple static sites by just uploading your files to the cloud.

Step 1: Create Your S3 Bucket

Step 2: Upload Your Website Files

Step 3: Enable Static Website Hosting

Step 4: Make Your Site Public

S3 buckets are private by default, so we need to allow public read access:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowPublicRead",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::your-bucket-name/*"
    }
  ]
}

Replace your-bucket-name with your actual bucket name, then paste this into the Bucket Policy under the Permissions tab.

Step 5: Access Your Live Website

Back in Properties > Static website hosting, you’ll see an Endpoint URL. Open that link in your browser and ta-da! Your site is live.

Quick Tips:

If you follow these steps, you’ll have your website up in no time — no stress, just simple cloud magic. 💪

Got questions or want me to add screenshots? Just shout!