Live HTTP Streaming Using CloudFront and Any HTTP Origin

With Amazon CloudFront live streaming, you can use any live encoder, such as Elemental Live, that outputs HTTP-based streams to stream
live performances, webinars, and other events. This tutorial walks you through the process of configuring live streaming.

Type a descriptive name for your live streaming stack, or accept the default name.

CustomOriginDNSName

Type the DNS name of the custom origin that CloudFront will get the live feed from.

CustomOriginHTTPPort

Type the HTTP TCP port that you want CloudFront to use to communicate with your custom origin.

DistributionComment

Type a comment to help you identify your distribution, which is useful if you manage multiple distributions.
The value that you type here appears in the CloudFront console.

Choose Next.

(Optional) On the Options page, add the key-value pairs for any tags you plan to use. In addition,
to configure SNS notification, to specify how long you're willing to wait for the stack to be created,
to choose whether to roll back changes if stack creation fails, and to enter a stack policy, choose Advanced,
and adjust settings as desired. For more information, see
Setting AWS CloudFormation Stack Options.

Choose Next.

Review the settings for the stack, and then choose Create. AWS CloudFormation creates the stack.

Creating your stack creation might take several minutes. To track the progress of stack creation, select the stack, and
then choose the Events tab. If AWS CloudFormation cannot create the stack, the Events tab lists error messages.

When your stack is ready, in the list of stacks, the status for the stack changes to CREATE_COMPLETE.

When your stack is created, choose the Outputs tab, which will display the CloudFront domain name.
You'll need this value when you set up the live stream playback in your web player.

Configuring Web Players to Play the Live Stream

To play the live stream, embed the manifest URL in the players that your users will play your live stream with. For example,
to play a live stream for which the manifest file is myStream/playlist.m3u8 and the CloudFront distribution is
d111111abcdef8.cloudfront.net, you embed the following URL in players:

http://d111111abcdef8.cloudfront.net/myStream/playlist.m3u8

(Optional) Deleting an AWS CloudFormation Stack for Live Streaming

When your live event is over, delete the stack that you created for live streaming. This deletes the CloudFront distribution that you
created for your live-streaming event.

Note

When you stop streaming, you also stop incurring CloudFront charges for this distribution. There are no charges for the
AWS CloudFormation stack.