Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services. Content delivery networks provide a globally-distributed network of proxy servers which cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content.
Create the S3 bucket step in My blog.
Go to CloudFront :--
Create Distribution :-
Note :- Web use for http and https website and S3 buckets RTMP use for video streaming and S3 buckets.
Default Cache Behavior Settings :-
On the Create Distribution page, under Origin Settings, choose the Amazon S3 bucket that you created earlier. For Origin ID, Origin Path, Restrict Bucket Access, and Origin Custom Headers, accept the default values.
Distribution Settings :-
Create the S3 bucket step in My blog.
Now create and configure the CloudFront.
Go to CloudFront :--
Create Distribution :-
Get Started (web) :-
Note :- Web use for http and https website and S3 buckets RTMP use for video streaming and S3 buckets.
Default Cache Behavior Settings :-
On the Create Distribution page, under Origin Settings, choose the Amazon S3 bucket that you created earlier. For Origin ID, Origin Path, Restrict Bucket Access, and Origin Custom Headers, accept the default values.
Under Distribution Settings, enter the applicable values:
- Price Class
- Select the price class that corresponds with the maximum price that you want to pay for CloudFront service. By default, CloudFront serves your objects from edge locations in all CloudFront regions.
For more information about price classes and about how your choice of price class affects CloudFront performance for your distribution, go to Choosing the Price Class for a CloudFront Distribution. For information about CloudFront pricing, including how price classes map to CloudFront regions, go to Amazon CloudFront Pricing. - AWS WAF Web ACL
- If you want to use AWS WAF to allow or block HTTP and HTTPS requests based on criteria that you specify, choose the web ACL to associate with this distribution. For more information about AWS WAF, see the AWS WAF Developer Guide.
- Alternate Domain Names (CNAMEs) (Optional)
- Specify one or more domain names that you want to use for URLs for your objects instead of the domain name that CloudFront assigns when you create your distribution. For example, if you want the URL for the object:
/images/image.jpg
to look like this:
http://www.example.com/images/image.jpg
instead of like this:
http://d111111abcdef8.cloudfront.net/images/image.jpg
you would create a CNAME forwww.example.com.
For the current limit on the number of alternate domain names that you can add to a distribution, see Amazon CloudFront Limits in the Amazon Web Services General Reference. To request a higher limit, go to https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-cloudfront-distributions.ImportantIf you add a CNAME forwww.example.comto your distribution, you also need to create (or update) a CNAME record with your DNS service to route queries forwww.example.comtod111111abcdef8.cloudfront.net. You must have permission to create a CNAME record with the DNS service provider for the domain. Typically, this means that you own the domain, but you may also be developing an application for the domain owner. For more information about CNAMEs, see Using Alternate Domain Names (CNAMEs). - SSL Certificate
- Accept the default value, Default CloudFront Certificate.
- Default Root Object (Optional)
- The object that you want CloudFront to request from your origin (for example,
index.html) when a viewer requests the root URL of your distribution (http://www.example.com/) instead of an object in your distribution (http://www.example.com/product-description.html). Specifying a default root object avoids exposing the contents of your distribution. - Logging (Optional)
- If you want CloudFront to log information about each request for an object and store the log files in an Amazon S3 bucket, select On, and specify the bucket and an optional prefix for the names of the log files. There is no extra charge to enable logging, but you accrue the usual Amazon S3 charges for storing and accessing the files. CloudFront doesn't delete the logs automatically, but you can delete them at any time.
- Cookie Logging
- In this example, we're using Amazon S3 as the origin for your objects, and Amazon S3 doesn't process cookies, so we recommend that you select Off for the value of Cookie Logging.
- Comment (Optional)
- Enter any comments that you want to save with the distribution.
- Distribution State
- Select Enabled if you want CloudFront to begin processing requests as soon as the distribution is created, or select Disabled if you do not want CloudFront to begin processing requests after the distribution is created.
> Create distribution - Test your links of Cloud front :--
- Go to S3 bucket and Upload the new file like :- test.html
Past the below code on the test.html
class="programlisting"><html> <head>My CloudFront Test</head> <body> <p>My text content goes here.</p> <p><img src="http://d34fnpsdes7373t37.cloudfront.net/test.html" alt="my test image"/> </body> </html>
Open your web page in a browser and Past the Url :--
http://cmdsfjiense.cloudfront.net/test.html
How to Configure Cloud Front in AWS
Reviewed by cloudwalebhaiya
on
October 31, 2017
Rating:
Reviewed by cloudwalebhaiya
on
October 31, 2017
Rating:





No comments: