title: AWS MediaLive MediaPackage - How to store realtime streaming videos to S3?
body: <p>I'm using AWS MediaLive to push video content in real-time from mobile devices.
  Then I'm using AWS MediaPackage to digest the input, i.e. the output from AWS MediaLive.
  With AWS MediaLive I create origin endpoints to let users/viewers watch live streamings.</p>
  
  <p>Now, I don't know how to store the live streaming video to S3 and distribute it through a CDN, in order to let watching the video even once the streaming is ended.
  Is something provided by AWS out-of-the-box?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>I defined an <code>ArchiveGroupSettings</code> with output URL to an S3 bucket.
  Now MediaLive creates <code>.ts</code> files and sends them to the bucket, the problem is that <code>.ts</code> files don't include a <code>.m3u8</code> playlist file.</p>
  
  <p>Should I use another AWS Media service?
  What I need it's just a way to stream videos once the realtime stream is finished, i.e. to save the HLS video to S3 or similar, then distribute it through a CDN like CloudFront.</p>
  
  <p>NOTE:
  I'm using the AWS MediaLive and MediaPackage APIs.</p>