A bucket full of HTML, CSS and pictures is already a website. Website hosting tells S3 to serve it at a web address, with no server to run: you pay for the storage and the visits.
aws s3 website
Turns website hosting on. The index document is the home page. The error document is shown when a page doesn't exist.
The website gets an address made from the bucket's name and region:
Website hosting serves only what the bucket's policy lets anyone read. With the public-read policy from the last lab, every object can be a page.
curl asks for a page from the terminal, like a browser. -I shows only the status line and headers: 200 OK for a page, or an error such as 404 Not Found or 403 Forbidden.
curl -I http://dragon-photos-2026.s3-website-us-east-1.amazonaws.com/