Creating your own CloudFront Distribution

Speed up your SyncSketch downloads using AWS CloudFront

Download speed determines how quickly SyncSketch can begin a review session. If you have an AWS account, and eliminating network latencies is mission-critical to your workflow, you can use the AWS CloudFront service to speed up your downloads.

In order for SyncSketch to provide the necessary signed CloudFront URLs, you will need to work with us directly.  Here's how to set it up.

Reach out to the SyncSketch team

Let us know that you plan to use CloudFront by emailing us as One of our team will respond privately via email, and this will be your contact for this procedure.

Enable S3 uploads

You will need to create an S3 bucket as the CloudFront origin for your organization. This is where your uploaded media files will be stored. This procedure is documented in Setting Up Your Own S3 Bucket.

Custom S3 uploads (required for CloudFront) are only available to customers on our Enterprise and Education+ plans.

Create an SSH key pair

CloudFront URLs must be signed. For SyncSketch to provide them to your SyncSketch application, we need to use an SSH key pair.

Execute the following commands in the terminal console to create a pair of private and public keys.

openssl genrsa -out private_key.pem 2048
openssl rsa -pubout -in private_key.pem -out public_key.pem

Share the private key with us

Share the private key from private_key.pem with your SyncSketch contact.  Avoid sharing in clear text via email; instead use an encrypted service such as OneTimeSecret.

Add the public key to CloudFront

  1. Sign in to AWS Console and open the CloudFront service.
  2. Expand the action menu at the upper left and choose Public keys from the Key management section.
  3. Select Create public key
  4. Give the key a distinct Name.
  5. To copy the contents of the public key to the clipboard, you can use the cat command on any terminal:
cat public_key.pem | pbcopy
Paste the public key into the Key field in the CloudFront console.

Create a Key Group containing the new public key

  1. On the CloudFront console go back to the action menu at the left, and under Key management choose Key groups.
  2. Click Create key group.
  3. Give the key group a distinct Name, and make a note of it for a later step.
  4. Under Public keys, tick the box next to the new public key and click Create key group.

Create the CloudFront Distribution

  1. On the CloudFront console go back to the action menu at the left, and click Distributions at the top.
  2. Click Create distribution.
  3. Find your S3 origin bucket under Origin domain.
  4. Leave the Origin path field blank.
  5. Give the distribution a Name.
  6. Under Origin access, choose Origin access control settings (recommended).
  7. Click Create control setting.
  8. Select Sign requests (recommended) and click Create without editing the other settings.
  9. Select the new control setting under Origin access control.
  10. Scroll to the Default cache behavior section and under Restrict viewer access, select Yes. This will reveal the Trusted authorization type setting.
  11. Set the Trusted authorization type to Trusted key groups (recommended).
  12. Under Add key groups, tick the box to the left of the key group you created.
  13. Scroll to the Settings section and under Price class choose the locations you want included in this distribution, balancing CloudFront plan price and performance.
  14. Click on Create distribution.

Add a policy to the CloudFront distribution

Now you must add a policy to the distribution that gives CloudFront permission to access the S3 bucket.

  1. On the CloudFront console go back to the action menu at the left, and click Distributions at the top.
  2. Wait for your new distribution to finish deploying. Its deployment Status should read Enabled.
  3. Click on its ID to update its configuration.
  4. Under Origins, click the radio button to the left of the distribution name.
  5. Click on Edit and find the Bucket policy settings.
  6.  Click the Copy policy button.  This copies the appropriate policy to the clipboard.
  7. In a new tab or window, go to the AWS S3 console
  8. Click on your origin S3 bucket.
  9. Under the Permissions tab, find the Bucket policy section and click Edit.
  10. Paste the copied policy into the numbered code block and click Save.

Your CloudFront distribution is set up. Once we've added your configuration on our end, your contact will let you know, and you should begin seeing snappier performance as you navigate among items.

Further Reading

To understand more about what you've just set up, please consult This AWS documentation.