Cyberduck Mountain Duck CLI

Version 49 (modified by dkocher, 8 years ago) (diff)

--

Cyberduck Help / Howto / Amazon CloudFront Support

The user interface supports one basic and one streaming distribution configuration per bucket. You can enable cloud front distribution using File → Info → Distribution. You must signup for Amazon CloudFront first. Make sure your objects in the bucket you want to enable distribution for are world readable. In File → Info → Permissions give READ permission to Everyone (http://acs.amazonaws.com/groups/global/AllUsers).

Basic (HTTP) Distributions

Used to serve static content.

Streaming (RTMP) Distributions

Used to serve media using a streaming protocol.

Playback Configuration

Copy the RTMP URL for a given file in a bucket with a streaming distribution enabled is displayed in the Info window Distribution (CDN) tab with Streaming (RTMP) selected as the delivery method. Where to put the URL depends on the client player you are using.

Custom Origin (HTTP/HTTPS) Distributions

A custom origin is an origin server that isn't hosted on Amazon S3. The origin server holds the original, definitive versions of your content. You can connect to any FTP, SFTP or WebDAV server and configure it as an origin server for content distribution with Amazon CloudFront in the Distribution (CDN) tab of the Info panel. The hostname from the Web URL configured in the bookmark is used to configure the origin of the CDN.

  • Adjust the Web URL of the bookmark to the host where you want to CloudFront look for the original content.
  • Set the Path of the bookmark to the document root of your web server. This allows you to select files for invalidation or set the default root object.
  • Connect to the server and select the Distribution (CDN) panel from the Info window.
  • Check the Origin URL displayed and enable the distribution with Enable Amazon CloudFront distribution.
  • Refresh the status of the distribution using Command-R. The initial status is In Progress and should subsequently change to Deployed when the changes in Amazon CloudFront have propagated.
  • Click the Where URL to load the content over the CDN.

Example configuration:

Serversudo.chHostname configured in bookmark to connect to
CNAMEcdn.cyberduck.chAlias for hostname assigned by the CloudFront distribution
Bookmark Path/usr/home/dkocher/cyberduck.ch/The Web Server Document Root
Selected File/home/dkocher/cyberduck.ch/img/cyberduck.icon.pngA file selected in the browser
HTTP URLhttp://media.cyberduck.ch/img/cyberduck.icon.pngOrigin URL for the resource
CDN URLhttp://d15bfu8of7vup8.cloudfront.net/img/cyberduck.icon.pngURL for the resource assigned by the CloudFront distribution
CDN CNAME URLhttp://cdn.cyberduck.ch/img/cyberduck.icon.pngURL for resource in CDN with custom hostname registered in the DNS

Deployment Status

Upon changing configuration parameters of a distribution configuration, the settings are not distributed immediatly in the CDN. While the deployment is in progress (which can take up to 15 minutes), the status In Progress is displayed. The updates are fully propagated throughout the CloudFront system when the distribution's state switches from In Progress to Deployed.

CloudFront Access Logging

When this option is enabled, access logs are written to <bucketname>/logs. The changes to the logging configuration take effect within 12 hours. The logging option is supported for both standard and streaming distributions.

Origin

The source of the content where CloudFront fetches the content to be served in the edge location of the CDN. This is a S3 bucket or your custom origin.

Where

The cloudfront.net domain assigned to your distribution. This is directing to the edge location in the CDN next to the user requesting an URL.

CNAMEs

Enter a CNAME (alias in the Domain Name System) for the hostname of the distribution given by CloudFront. To use multiple CNAMEs for a single distribution, the hostnames must be space delimited. The CNAME must be registered on the nameserver responsible for your domain and point to cloudfront.net domain assigned to your distribution.

Example configuration:

;; QUESTION SECTION:
;cdn.cyberduck.ch.		IN	A

;; ANSWER SECTION:
cdn.cyberduck.ch.	1576	IN	CNAME	d15bfu8of7vup8.cloudfront.net.

Default Root Object

You can assign a default root object to your HTTP or HTTPS distribution. This default object will be served when Amazon CloudFront receives a request for the root of your distribution – i.e., your distribution’s domain name by itself.

When you define a default root object, a user request that calls the root of your distribution returns the default root object. For example, if you designate the file index.html as your default root object, a request for http://d604721fxaaqy9.cloudfront.net/ returns http://d604721fxaaqy9.cloudfront.net/index.html.

Object Invalidation

Invalidation is one way to remove a distribution object from an edge server cache before the expiration setting on the object's header. Invalidation clears the object from the edge server cache, and a subsequent request for the object will cause CloudFront to return to the origin to fetch the latest version of the object.

References

Attachments (3)

Download all attachments as: .zip

swiss made software