CloudFront of Amazon is a Content Delivery Network service that provides data with security, applications, video, and APIs to customers with minimum delay, high transfer speeds, and develop friendly environment. CloudFront is integrated with AWS - both physical locations that are directly connected to AWS global infrastructure as well as other AWS services. It is working fine with services including DDoS mitigation, Amazon S3, Elastic Load Balancing, or AWS Shield for Amazon EC2 as a genesis for your applications, and for running custom code for customers users And Lambda @ Edge to optimize the user experience. Finally, if you use AWS native-like Amazon S3, Amazon EC2, or Elastic Load Balancing, you do not pay for any data transferred between these services and CloudFront.
Key Features of Cloudfront -
Fast & global -
The Amazon CloudFront Content Delivery Network (CDN) is distributed extensively and globally. The CloudFront network has 210 points of presence (PoPs), and leverages the highly flexible Amazon backbone network for improved performance and availability for its end users.
Security at the Edge -
Amazon Cloudfront is the most secure CDN that provides both network and application-level protection. Your traffic and applications will benefit from various built-in protections, such as the AWS Shield Standard, at no additional cost. You can also use configurable features such as AWS Certificate Manager (ACM) to create and manage custom SSL certificates at no additional cost.
Highly programmable -
You can customize Amazon Cloudfront features for your specific application needs. CDN also supports integration with other tools and automation interfaces for today's DevOps and CI / CD environments by using native APIs or AWS tools.
Deep integration with AWS -
The Amazon Cloudfront is integrated with AWS services such as Amazon S3, Amazon EC2, Elastic Load Balancing, Amazon Route 53, and AWS Elemental Media Services. They are all accessed by a single console, and all features on the CDN can be programmed using APIs or the AWS Management Console.
How to use CloudFront to serve HTTPS requests for Amazon S3 bucket -
1. Open the CloudFront console.
2. For Origin Domain Name, we can choose your S3 bucket's REST API endpoint or we can enter your S3 bucket's website endpoint.
3. For Viewer Protocol Policy, choose HTTP and HTTPS.
If we have a custom domain with CloudFront, choose to create a distribution. For custom domain, follow these additional steps before creating the distribution:
4. For Alternate Domain Names (CNAMEs), type your custom domain.
5. For SSL Certificate, go for Custom SSL Certificate. Then, click the custom SSL certificate to assign to the distribution.
6. Create Distribution.
For better understanding please go with the below link -
How to use CloudFront with Amazon S3