download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

CloudFront - How to Update Private Streaming Distribution (GET Streaming Distribution, PUT Streaming Distribution with OriginAccessIdentity and AWS TrustedSigners)?

In AWS CloudFront, your data is organized into Distributions . You can create Private Streaming Distributions for on demand delivery of your rich media content. By creating a Distribution you register your Origin Server ( Amazon S3 Bucket where your S3 Objects are stored) with CloudFront.

If you want to Update a CloudFront Private Streaming Distribution, you can send an HTTP GET Request to access the Distribution Config and then submit an updated Distribution Configutation using an HTTP PUT Request to the AWS Server, along with other necessary information. You can Update the CloudFront Private Streaming Distribution one of the two ways:

  1. Update CloudFront Private Streaming Distribution with CloudFront API- PUT Distribution Config - If you are a programmer, you can write your own code, to use AWS CloudFront supported API- PUT Distribution Config in your code to update CloudFront Private Streaming Distribution.
  2. Update CloudFront Private Streaming Distribution using Bucket Explorer- You can update CloudFront Private Streaming Distribution using Bucket Explorer User Interface if you do not want to write software code.

1. Update Private Streaming Distribution Using REST API

To update a streaming distribution using CloudFront API

  • Perform a GET Streaming Distribution Config request to fetch current configuration and the Etag header for the distribution.
  • Make desired update in XML document that was returned in the response to your GET Streaming Distribution Config request.
  • Submit a PUT Streaming Distribution Config request to update distribution with updated XML document.

Syntax: GET Streaming Distribution Config Request


GET /2013-05-12/streaming-distribution/ distribution ID HTTP/1.1
Host: cloudfront.amazonaws.com
Authorization: AWS authentication string
Date: time stamp
Other required headers
 

Syntax: PUT Streaming Distribution Config Request


PUT /2013-05-12/streaming-distribution/ distribution Id /config HTTP/1.1
Host: cloudfront.amazonaws.com
If-Match: value from ETag header in previous GET response
Authorization: AWS authentication string
Other required headers

<?xml version="1.0" encoding="UTF-8"?>
<StreamingDistributionConfig>
<S3Origin>
<DNSName> CloudFront domain name assigned to the distribution </DNSName>
<OriginAccessIdentity>origin-access-identity/cloudfront/ ID </OriginAccessIdentity>
</S3Origin>
<TrustedSigners>
<Quantity> number of trusted signers </Quantity>
<Items>
<AwsAccountNumber>self | AWS account that can create signed URLs </AwsAccountNumber>
</Items>
</TrustedSigners>
...<UPDATED XML Document>
</StreamingDistributionConfig>
 

2. Update Private Streaming Distribution Using Bucket Explorer

Steps:

  • Run Bucket Explorer.
  • List Distribution using option Distribution -> List Distribution .
  • Select desired private streaming distribution to be updated and click on Update button.
  • It will open update streaming distribution panel.
  • Make desired update in your distribution.
  • You can also update Origin Access Identity as well as Trusted Signer.
  • Click on Update button.