Automated deployment - Video on Demand on AWS

Automated deployment

Before you launch the automated deployment, review the architecture and other considerations discussed in this guide. Follow the step-by-step instructions in this section to configure and deploy the Video on Demand on AWS solution into your account.

To update your existing stack to the latest version, refer to Update the stack. For additional options, including using an older version of this solution, refer to Solution updates.

Time to deploy: Approximately 20 minutes

Launch the stack

Use this AWS CloudFormation template to deploy the latest version of this solution.

Note

You are responsible for the cost of the AWS services used while running this solution. Refer to the Cost section for more details. For full details, refer to the pricing webpage for each AWS service you will be using in this solution.

  1. Sign in to the AWS Management Console and click the button below to launch the video-on-demand-on-aws AWS CloudFormation template.

    
                                Video-on-Demand solution launch button

    You can also download the template as a starting point for your own implementation.

  2. The template is launched in the US East (N. Virginia) Region by default. To launch this solution in a different AWS Region, use the region selector in the console navigation bar.

    Note

    This solution uses AWS Elemental MediaConvert and AWS Elemental MediaPackage, which are available in specific AWS Regions only. Therefore, you must deploy this solution in a Region that supports these services. For the most current service availability by Region, refer to the AWS Regional Services List.

  3. On the Select Template page, verify that you selected the correct template and choose Next.

  4. Under Parameters, review the parameters for the template, and modify them as necessary.

    This solution uses the following default values.

    Parameter Default Description
    Notification Email Address <Requires input> A valid email address to receive Amazon SNS notifications.
    Workflow Trigger <Requires input> Choose VideoFile to ingest source videos only; choose MetadataFile to ingest metadata files and source videos.
    Archive Source Content false Choose GLACIER to enable an Amazon S3 lifecycle policy on the source bucket to move applicable files to Amazon S3 Glacier after seven days, DEEP_ARCHIVE to move to Glacier Deep Archive.
    Enable SNS true Choose true receive SNS notifications for the ingest and pushlish workflows. Choose false to only receive error messages.
    Enable SQS true Choose true to deploy an SQS queue for publishing messages.
    Enable Frame Capture false Choose true to create thumbnails for each AWS Elemental MediaConvert output.
    Accelerated Transcoding PREFERRED Choose PREFERRED to enable Accelerated Transcoding for supported file types (recommended), ENABLE to apply to all encoding jobs.
    Enable MediaPackage false Choose true to enable AWS Elemental MediaPackage as part of the workflow.
  5. Choose Next.

  6. On the Options page, choose Next.

  7. On the Review page, review and confirm the settings. Be sure to check the box acknowledging that the template will create AWS Identity and Access Management (IAM) resources.

  8. Choose Create to deploy the stack.

    You can view the status of the stack in the AWS CloudFormation console in the Status column. You should receive a CREATE_COMPLETE status in approximately 20 minutes.

    After the stack is created, Amazon SNS sends three subscription notifications to the admin email address with links to enable encoding, publishing, and error notification.

  9. In the subscription notification emails, select each link to enable SNS notifications.

Note

In addition to the AWS Lambda functions that create solution resources and trigger the ingest and publishing processes, this solution includes the custom-resource Lambda function, which runs only during initial configuration or when resources are updated or deleted.

When running this solution, the custom-resource Lambda function is inactive. However, do not delete the function as it is necessary to manage associated resources.

Update the stack

Complete the following steps to update your AWS CloudFormation stack to the current version.

  1. From the main account where the Video on Demand on AWS template is deployed, sign in to the AWS CloudFormation console.

  2. From the Stacks page, select this solution’s stack and choose Update.

  3. On the Update stack page, verify that Replace current template is selected.

    1. In the Specify template section, select Amazon S3 URL.

    2. Copy the link of the latest template.

    3. Paste the link in the Amazon S3 URL box.

    4. Verify that the correct template URL shows in the Amazon S3 URL text box and choose Next.

  4. On the Specify stack details page, under Parameters, review the parameters for the template and modify them as necessary. Refer to Launch the stack for details about the parameters.

  5. Choose Next.

  6. On the Configure stack options page, choose Next.

  7. On the Review page, review and confirm the settings. Check the box acknowledging that the template will create AWS Identity and Access Management (IAM) resources.

  8. Choose View change set and verify the changes.

  9. Choose Update stack to deploy the stack.

You can view the status of the stack in the AWS CloudFormation console in the Status column. You should receive an UPDATE_COMPLETE status in approximately 20 minutes.