3 ms·
tl;dr for anyone ever needing to use S3 as a website: - S3 bucket w/ same name as domain. - CNAME to bucket - OR enable static website hosting, CNAME to your
by whalesalad 6y ago
tl;dr for anyone ever needing to use S3 as a website:
- S3 bucket w/ same name as domain.
- CNAME to bucket
- OR enable static website hosting, CNAME to your bucket's website dns name provided by AWS.
- Done, just make sure CF is proxying not doing pass-thru.
- PS, permissions need to allow public read of your data, of course.
- NovemberWhiskey 6y agoOr if you're already in the AWS ecosystem, maybe don't even bother with Cloudflare and just use AWS CloudFront?
- whalesalad 6y agoI can't think of a good reason to not use Cloudflare. They are incredible. (That being said, there is nothing wrong with Cloudfront. On a recent project we are using all three, cloudfront and cloudflare are not mutually exclusive)
- mazamats 6y agoCloudflare acts as a transparent proxy, cloud front lets you cache only s3 buckets...
- mike503 6y agocost