Amazon CloudFront
Developer Guide (API Version 2016-09-29)

Task List for Creating a Web Distribution

The following task list summarizes the process for creating a web distribution.

To Create a Web Distribution

  1. Create one or more Amazon S3 buckets or configure HTTP servers as your origin servers. An origin is the location where you store the original version of your web content. When CloudFront gets a request for your files, it goes to the origin to get the files that it distributes at edge locations. You can use any combination of Amazon S3 buckets and HTTP servers as your origin servers.

    If you're using Amazon S3, note that the name of your bucket must be all lowercase and cannot contain spaces.

    If you're using an Amazon EC2 server or another custom origin, review Requirements and Recommendations for Using Amazon EC2 and Other Custom Origins.

    For the current limit on the number of origins that you can create for a distribution, see Amazon CloudFront Limits in the Amazon Web Services General Reference. To request a higher limit, go to

  2. Upload your content to your origin servers. If you don't want to restrict access to your content using CloudFront signed URLs, make the objects publicly readable.


    You are responsible for ensuring the security of your origin server. You must ensure that CloudFront has permission to access the server and that the security settings are appropriate to safeguard your content.

  3. Create your CloudFront web distribution:

  4. Optional: If you created your distribution using the CloudFront console, create more cache behaviors or origins for your distribution. For more information, see To List, View, and Update CloudFront Distributions Using the CloudFront Console.

  5. Test your web distribution. For more information, see Testing Your Web Distribution.

  6. Develop your website or application to access your content using the domain name that CloudFront returned after you created your distribution in Step 3. For example, if CloudFront returns as the domain name for your distribution, the URL for the file image.jpg in an Amazon S3 bucket or in the root directory on an HTTP server will be

    If you specified one or more alternate domain names (CNAMEs) when you created your distribution, you can use your own domain name. In that case, the URL for image.jpg might be

    Note the following: