Learn how to host a static website using Amazon S3. You'll create a bucket, configure it for web hosting, and upload a simple webpage with an image. This lab demonstrates the power of serverless web hosting using AWS services.
⚠️ Important: This lab must be completed in the US West (Oregon) region us-west-2. Make sure your AWS Console is configured with this region before starting.
What you'll learn:
Creating an S3 bucket with a unique name
Configuring bucket policies for public access
Enabling static website hosting
Uploading and configuring web content
Testing your static website
Step 1: Create an S3 Bucket
In the AWS Console, navigate to S3 from the services menu
Click Create bucket
For Bucket name, enter a unique name (e.g., "my-website-lab-[YOUR-NAME]")
For Region, select US West (Oregon) us-west-2
Under Block Public Access settings, uncheck "Block all public access"
Acknowledge the warning about making the bucket public
Keep all other settings at their defaults
Click Create bucket
Step 2: Configure Bucket Policy
Go to the Permissions tab
Under Bucket policy, click Edit
Copy and paste the following policy (replace YOUR-BUCKET-NAME with your actual bucket name):