Create an S3 bucket named exactly like your website address, turn on static website hosting, then point your Cloudflare domain at the bucket's website address with a proxied DNS record. Cloudflare then serves your site over HTTPS. The exact clicks change often, so check the date this tip was last checked.
Checked October 2026How the pieces fit
A visitor types your domain. Cloudflare answers first: it holds your domain, adds the padlock (HTTPS) and keeps copies of your files close to visitors. When it needs the files, it fetches them from your S3 bucket, where the site files live.
Four rules that matter
- The bucket name must equal the website address. S3 reads the address the visitor asked for and looks for a bucket with that exact name.
- Turn on static website hosting for the bucket and set the index page (
index.html) and an error page. - The S3 website address only speaks plain HTTP. Cloudflare talks to S3 over HTTP, and talks to visitors over HTTPS. That is why this setup uses Cloudflare's Flexible SSL mode.
- Point your domain at the bucket's website address with a DNS record, and keep it proxied through Cloudflare so the padlock and caching work.
Keep the bucket private to everyone except Cloudflare
Cloudflare advises restricting a bucket so that only Cloudflare can read it. A bucket policy can do this, so visitors cannot bypass Cloudflare and hit your bucket directly.
Why screens differ from other tutorials
AWS and Cloudflare rename buttons and move menus often. That is why Bob shows the date each fact was checked, and tells you what to look for when a screen looks different.