Step 4: Access your content through CloudFront - Amazon CloudFront

Step 4: Access your content through CloudFront

To access your content through CloudFront, combine the domain name for your CloudFront distribution with the main page for your content. (You recorded your distribution domain name in Step 3: Create a CloudFront distribution that uses an Amazon S3 origin with OAC.)

  • Your distribution domain name might look like this: d111111abcdef8.cloudfront.net.

  • The path to the main page of a website is typically /index.html.

Therefore, the URL to access your content through CloudFront might look like this:

https://d111111abcdef8.cloudfront.net/index.html.

If you followed the previous steps and used the hello world webpage, you should see the following content:

The Hello world webpage.

When you upload more content to this S3 bucket, you can access the content through CloudFront by combining the CloudFront distribution domain name with the path to the object in the S3 bucket. For example, if you upload a new file named new-page.html to the root of your S3 bucket, the URL looks like this:

https://d111111abcdef8.cloudfront.net/new-page.html.