AWS Elemental MediaLive
User Guide

Creating a MediaConnect Push Input

There are three stages to creating a MediaConnect input in MediaLive. First, you set up redundant flows in AWS Elemental MediaConnect, then you create an input in MediaLive, then you verify that the output has been automatically created in MediaConnect.

To create flows in MediaConnect

  1. Follow the procedure in Creating a Flow in the AWS Elemental MediaConnect User Guide to create two MediaConnect flows. You must create two flows because MediaLive requires redundant sources. Complete the fields as follows:

    • For Availability Zone, choose a different Availability Zone for each flow. (If you choose the same Availability Zone for both flows, MediaLive doesn't allow you to create the input.)

    • For Name, enter a name that includes A (for the first flow) and B (for the second flow). For example, sports_event_A and sports_event_B. Using these letters will help you match the flows to the input pipelines in MediaLive.

    • Complete the other fields as appropriate.

    • When you create the flow, MediaConnect creates an ARN for each flow. For example:

      arn:aws:mediaconnect:us-west-1:111122223333:flow:1bgf67:sports_event_A and

      arn:aws:mediaconnect:us-west-1:111122223333:flow:9pmlk76:sports_event_B

      Note that the ARNs include the flow names as the last portion.

  2. Make a note of these ARNs. You need them to set up the MediaLive input.

To create an input in MediaLive

  1. Open the MediaLive console at https://console.aws.amazon.com/medialive/.

  2. In the navigation pane, choose Inputs.

  3. On the Inputs page, choose Create input.

  4. In the Input details section, for Input name, enter a name.

  5. For Input type, choose MediaConnect.

  6. In the MediaConnect section, for ARN for flow A, specify the ARN for the MediaConnect that you identified as flow A. In ARN for flow B, specify the ARN for flow B.

  7. Complete the Role ARN section to choose a role for MediaLive to use with this input. For information, see IAM Role and ARN.

  8. Choose Create.

    MediaLive adds the input to the list of inputs and automatically creates two pipelines, one for flow A and the other for flow B.

    MediaConnect runs the flows in different Availability Zones—one zone for flow A, another zone for flow B. Similarly, MediaLive runs the sources (flows) on different encoder pipelines, each in a different Availability Zone—one zone for pipeline A, another zone for pipeline B. MediaLive and MediaConnect coordinate so that both services choose the same Availability Zone for flow and pipeline A and for flow and pipeline B. This setup ensures maximum redundancy if one flow fails.

To verify the output in MediaConnect

  1. To view the list of outputs for the two flows you created, follow the procedure in Creating a Flow in the AWS Elemental MediaConnect User Guide.

    When you created the input in MediaLive, MediaConnect automatically created outputs. Therefore, you end up with the following:

    Flow A (in MediaConnect) – output for flow A (in MediaConnect) – source for A (in MediaLive)

    Flow B (in MediaConnect) – output for flow B (in MediaConnect) – source for B (in MediaLive)

  2. Make sure that there is one output for flow A and one output for flow B.

    Each output is assigned a name that consists of MediaLive dash random characters. For example:

    MediaLive-ace74fa23

IAM Role and ARN

This section describes how to complete the Role ARN section on the Create input pane of the MediaLive console.

You must choose a role for MediaLive to assume when it creates any input. The role ensures that MediaLive succeeds in its request to MediaConnect to create outputs on the flows. MediaLive sends this request as soon as you choose Create for this input.

Note

This section on the MediaLive console is identical to the IAM role section on the Create channel page (also on the MediaLive console). The difference in the two usages is that on the Create input page, you are attaching the role to the input. On the Create channel page, you are attaching the role to the channel. You can use the same role (for example, the MediaLiveAccessRole) in both usages.

There are two general scenarios for choosing a role, depending on whether your organization has a designated administrator.

Your Organization Has a Designated Administrator

Your organization might have an administrator who manages this service. That administrator has likely set up one or more roles:

  • Ask the administrator or your manager which role to use. Or if only one rule is listed in Use existing role, choose that role.

  • If the only rule that is listed is MediaLiveAccessRole, choose that role. In addition, if the Update button is displayed beside this role name, choose the button. (The button does not always appear, but whenever it does appear, choose it to refresh the role.)

  • If you want the selected ARN to appear first in the list next time, select Remember ARN.

Your Organization Has No Administrator

Your organization might not have a designated service administrator. In this case, if none of your colleagues have set up a suitable role, you might have to create one yourself and then choose it.

  • You can create the default role, called MediaLiveAccessRole. To first check if someone else has already created this role (only one person needs to create it for all users in your AWS account), look at Create role from template:

    • If this option is grayed out, this task has been done. In that case, choose Use existing role, and then choose MediaLiveAccessRole from the list.

    • If this option is not grayed out, choose Create role from template, and then choose Create IAM role. Next, choose that role from the list. If MediaLive does not let you create the role, speak to an AWS IAM administrator about your permissions.

  • If the MediaLiveAccessRole has already been created and the Update button is displayed beside it, choose the button. (The button does not always appear, but whenever it does appear, choose it to refresh the role.)

  • If you want the selected ARN to appear first in the list next time, select Remember ARN.

On this page: