1. Login to your AWS Management Console.

  2. Click the CloudFront tab.

  3. Click the “Create Distribution” button.

In the CNAME field, enter a sub-domain that you want to use to serve your content.(Note: Do not put “http://” infront of your sub-domain).

The logging option is optional. If you set it to ON, it will log all the events and details onto a log file. You will have to specify a bucket for it to store the log file. Make sure the distribution status is set to “Enable”. Click “Continue”. 6. Lastly, review your settings. If everything is correctly, click “Create Distribution”.

Configuring your CNAME

Still in the AWS Management Console, copy your CloudFront domain name for this particular distribution.

Contact your webhost and get them to create a CNAME record to point the sub-domain you have entered previously to this CloudFront domain name. That’s it. As long as you use this sub-domain in your website, all your static files will be served from the location closest to your readers.