Wednesday, April 21, 2021

configure AWS CloudFront with S3 Bucket

In this tutorial we will configure AWS CloudFront with S3 Bucket 

Amazon CloudFront is a fast content delivery network (CDN) service that

securely delivers data, videos, applications, and APIs to customers globally with low latency, high transfer speed.


Step 1) Create S3 bucket and upload a Image.

 

 

Step 2) Give Read permission to file for Public access.


Step 3) Search CloudFront service and launch

 

 

Step 4) Click on "Create Distributions" and "Get Started"


 

Create a web distribution if you want to:

  • Speed up distribution of static and dynamic content, for example, .html, .css, .php, and graphics files.
  • Distribute media files using HTTP or HTTPS.
  • Add, update, or delete objects, and submit data from web forms.
  • Use live streaming to stream an event in real time.



Step 5) Do the drop-down in "Origin Domain Name" and select your s3 bucket name.



note:- For Default Configuration, Leave all "Origin Settings" as default
note:- For Default Configuration, Leave all "Default Cache Behavior Settings" as default
note:- For Default Configuration, Leave all "Distribution Settings"


 

Step 6) Copy Cloudfront Origin URL and paste in web browser with file path.


 

Example :-  http://cloudfrountdemo9906.s3.amazonaws.com/1.png

1.png is a file that is stored in S3 bucket.


 


No comments:

Post a Comment

testing