tech notes

by Jacob Friis Saxberg

Amazon CloudFront with Custom Origin via Cyberduck

It took me some time to figure out how to enable Custom Origin in order to utilize Origin Pull on Amazon CloudFront via Cyberduck, although I tried this and even that, so I thought I would share how I made it work.

  1. Create a CloudFront distribution.
  2. Create a S3 bookmark in Cyberduck. Use your Origin Bucket hostname as server.
  3. Edit the bookmark XML file.
    On a Mac it’s around here: Library/Application Support/Cyberduck/Bookmarks
  4. Add <key>Web URL</key><string>http://YourCustomOrigin.tld/</string> inside <dict>.
  5. Connect to the server and select the Distribution (CDN) panel from the Info window.
  6. Enable Enable Amazon CloudFront distribution.
  7. You’re done.