Tips - Amazon CloudFront

Tips

This Getting started tutorial provides a minimal framework for creating a distribution. We recommend that you explore the following enhancements:

  • By default, the files (objects) in the Amazon S3 bucket are set up as private. Only the AWS account that created the bucket has permission to read or write the files. If you want to allow anyone to access the files in your Amazon S3 bucket using CloudFront URLs, you must grant public read permissions to the objects.

  • You can use the CloudFront private content feature to restrict access to the content in the Amazon S3 buckets. For more information about distributing private content, see Serving private content with signed URLs and signed cookies.

  • You can configure your CloudFront distribution to use a custom domain name (for example, www.example.com instead of d111111abcdef8.cloudfront.net). For more information, see Use custom URLs.

  • This tutorial uses an Amazon S3 origin with origin access control (OAC). However, you can't use OAC if your origin is an S3 bucket configured as a website endpoint. If that's the case, you must set up your bucket with CloudFront as a custom origin. For more information, see Use an Amazon S3 bucket that's configured as a website endpoint. For more information about OAC, see Restricting access to an Amazon Simple Storage Service origin.