Menu
Video on Demand on AWS
Video on Demand on AWS

Automated Deployment

Before you launch the automated deployment, please 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 solution into your account.

Time to deploy: Approximately 25 minutes

Launch the Metadata Stack

Use this AWS CloudFormation template to deploy the video-on-demand solution that ingests metadata files and videos.

Note

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

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

    
                                Metadata and Video solutions 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 Step Functions and Amazon Elastic Transcoder 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, see AWS service offerings by region.

  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
    Admin Email <Requires input> A valid email address to receive Amazon SNS notifications
    Use Amazon Glacier True Choose True to enable an Amazon S3 lifecycle policy on the source bucket to move applicable files to Amazon Glacier
  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 see a status of CREATE_COMPLETE in roughly 25 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 metrics-helper Lambda function, which runs only during initial configuration or when resources are updated or deleted.

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

Launch the Video-Only Stack

Use this AWS CloudFormation template to deploy the video-on-demand solution that ingests source videos only.

Note

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

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

    
                            Video-Only 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 Step Functions and Amazon Elastic Transcoder 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, see AWS service offerings by region.

  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
    Admin Email <Requires input> A valid email address to receive Amazon SNS notifications
    Thumbnails True Choose True to create thumbnails from the source video
    Watermark aws-logo.png

    Name of the image (PNG or JPEG) to use as your watermark

    Note

    After you launch the stack, you must upload your watermark image to the Watermarks folder in the source Amazon S3 bucket.

    Upscale True Choose True upscale your videos to your target size. Use this parameter if you want to convert lower resolution videos to a higher resolution.
    HLS <Optional Input>

    Comma delimited list of available HLS presets. For example, 1080,720,540,432,360,270,234.

    Note

    If you leave this parameter blank, the solution will not create this output.

    DASH <Optional Input>

    Comma delimited list of available DASH presets. For example, 1080,720,540,432,360,270,234.

    Note

    If you leave this parameter blank, the solution will not create this output.

    MP4 <Optional Input>

    Comma delimited list of available MP4 presets. For example, 1080,720,540,432,360,270,234.

    Note

    If you leave this parameter blank, the solution will not create this output.

  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 see a status of CREATE_COMPLETE in roughly 25 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 metrics-helper Lambda function, which runs only during initial configuration or when resources are updated or deleted.

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