AWS Beginner Series

Host a Website on Amazon S3

Learn how to deploy a static website in under 5 minutes using Amazon Simple Storage Service.

How It Works

👤 User Browser
âž” HTTP Request âž”
🪣 AWS S3 Bucket

1 Create an S3 Bucket

Log in to the AWS Management Console, open S3, and click Create bucket. Name it uniquely (e.g., my-first-aws-website-123).

2 Enable Static Website Hosting

Under the bucket's Properties tab, scroll down to Static website hosting, select Enable, and set index.html as your index document.

3 Apply Bucket Policy

Under Permissions, uncheck Block all public access, then paste this JSON policy into the Bucket Policy editor:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "PublicReadGetObject",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*"
    }
  ]
}