How to configure S3 domain alias on web with cloudflare

We’re using S3 as a storage for releases of Skipper (originally ORM Designer). It’s a good and fast solution, but links to downloads aren’t so pretty:

https://s3.amazonaws.com/downloads.skipper18.com/Skipper-3.0.0.1024-Windows-all-32bit.exe

but what we want is something like this :

https://downloads.skipper18.com/Skipper-3.0.0.1094-Windows-all-32bit.exe

The solution is pretty simply. The only necessary thing is to create bucket on S3 with the same name link domain where the downloads will be available:

S3 bucket

and then configure new CNAME in cloudflare:

S3 alias

type: CNAME
name: downloads.skipper18.com
alias: downloads.skipper18.com.s3.amazonaws.com

And that’s all. Domain should be ready within fews seconds.

External links: