☁️ AWS
Host Static Files on S3

Updated at 2020-05-04 20:41

A simple step-by-step guide how to host some files on S3 with a CloudFront in the front.

AWS S3 + CloudFront + Route53 =

Create bucket:

  • Name:
  • Uncheck "Block all public access"

Create folder:

  • Name: buttons

Upload images there:


Create distribution:

  • Origin Domain Name:
  • Viewer Protocol Policy: Redirect HTTP to HTTPS
  • Price Class: Use All Edge Locations
  • Alternate Domain Names (CNAMEs):
  • Custom SSL Certificate: (select certificate)

Record the distribution domain name:

Wait for the distribution status to become "Deployed", takes about 20min.

Create record set:

  • Name:
  • Type: A
  • Alias: YES
  • Value:


  • which can be used by others
  • You could host any files this way, of course you will be paying for the distribution costs, albeit minuscule.