- Cloudfront caches and delivers dynamic content to end-users.
- It is a global service and NOT region-specific.
- You can define the Allow/Deny list of countries for Cloudfront distribution.
- It supports IPV6.
- You can enable the logging (s3 bucket).
- Whatever you put after configuring the CDN, it will automatically push to edge location data centers.
Step 0: Create a file index.html in the S3 bucket (srcbucket) and provide public access to this file.
Step 1: Search Service CloudFront or Goto Networking and Content Delivery --> CloudFront
Step 2: Click on Create Distribution button.
Step 3: Define below properties
Origin Domain: S3 bucket name(srcbucket)
Origin Path: No change because of index.html file is not in any folder of s3 bucket
Other properties are default no change.
Price class:- Edge location with best performance
Step 4: Click on Create distribution.