Good day to all!

In my previous
article on AWS, I talked in general about all the services I worked with. Today I decided to add a story about CloudFront, because I have something to tell.
Amazon CloudFront
Description
CloudFront - CDN (Content Delivery Network) from Amazon, based on the S3 service or other file source. Distribution is created and fixed to the S3 bakte, or to another source, which is specified by the user.
Creating content distribution looks like this:
- The bucket is chosen:

')
Or another source:

- We set our CNAME [optional], by which the distribution will be available:

- Check if all parameters are correct:

- Send CNAME in the domain to the Domain Name provided after creation
Types of distribution
CloudWatch supports 2 types of distribution:
- Download (Download) - used for static content sites (images, js, css).
- Streaming - used to broadcast video / audio content. The main difference of this distribution is the ability to stop the playback, i.e. press pause, rewind back. Also in the broadcast, you can insert ads in certain places of the file playback.
Distribution points
Like any CDN service, CloudFront has distribution points (Edge Network) worldwide:
USA | Europe | Asia | South America |
Ashburn, VA | Amsterdam | Hong Kong | Sao paulo |
Dallas / Fort Worth, TX | Dublin | Osaka |
Jacksonville, FL | Frankfurt | Singapore |
Los Angeles, CA (2) | London | Tokyo |
Miami, FL | Milan |
New York, NY (2) | Paris |
Newark, NJ | Stockholm |
Palo Alto, CA |
San Jose, CA |
Seattle, WA |
South Bend, IN |
St. Louis MO |
As you can see, AWS is more targeted at the USA and Europe, but from Kharkov, for example, I was carried to Milan at a fairly good speed:

In developing
AWS is working on developing CloudFront and offering in the future:
- New locations of distribution points
- Support CNAME HTTPS
- Caching priorities
- Custom TTL default settings
- Custom error message settings
- Digital rights settings, such as watermarks
- Improved analytics and reports
- Improved console
- Improved settings for personal content
- Live broadcast
- GZIP software support
- Adding parameters when prompted to a custom content source (not S3)
- Reducing the minimum TTL
- Referrals checking
Billing
CloudFront billing is performed for traffic and HTTP requests. At the moment, the billing for S3 traffic and CloudFront are the same, so you can get a Amazon CDN “in the appendix” to S3.