Issues Creating MediaConnect Flows with Cloudformation Template

0

Hi,

I'm struggling creating Media Connect flows using cloudformation where the ingest protocol is not zixi-push. The documentation does state that srt-listener is not supported via cloudformation ( reference https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-maxlatency ) but I'm trying "rtp" and it fails.

Additionally, the error message is not very helpful "Error occurred during operation 'AWS::MediaConnect::Flow'." (RequestToken: <redacted>, HandlerErrorCode: GeneralServiceException)"

A working template (using Zixi on port 2088) looks like this;

`{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "Media Connect Flow Test",
    "Resources": {
        "MediaConnectFlowA": {
            "Type": "AWS::MediaConnect::Flow",
            "Properties": {
                "Name": "WIZARDA",
                "AvailabilityZone": "eu-west-1b",
                "Source": {
                    "Name": "WIZARDASource",
                    "StreamId": "A",
                    "Description": "Media Connect Flow Test - WIZARDA",
                    "Protocol": "zixi-push",
                    "IngestPort": 2088,
                    "WhitelistCidr": "<redacted>/32"
                }
            }
        }
    }
}`

but keeping the protocol as zixi and changing the ingress port results in failure (this could be be design I guess as it's a non-standard Zixi port).

Similarly, and more importantly for what I want to do, trying to change the protocol to "rtp" fails e.g.

{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "Media Connect Flow Test",
    "Resources": {
        "MediaConnectFlowA": {
            "Type": "AWS::MediaConnect::Flow",
            "Properties": {
                "Name": "WIZARDA",
                "AvailabilityZone": "eu-west-1b",
                "Source": {
                    "Name": "WIZARDASource",
                    "StreamId": "A",
                    "Description": "Media Connect Flow Test - WIZARDA",
                    "Protocol": "rtp",
                    "IngestPort": 2088,
                    "WhitelistCidr": "<redacted>/32"
                }
            }
        }
    }
}

Can anyone advise on the right construct to create a flow with RTP source? (also rtp-fec failed)

for completeness, the I've run via the console and also using the CLI e.g.

aws --profile=aws-course  --region=eu-west-1 cloudformation create-stack --stack-name="mediaconnect-rtp" --template-body file://..\MConly.json
Matt H
posta 2 anni fa346 visualizzazioni
1 Risposta
0
Risposta accettata

Hi Matt,

Thanks for using AWS re:Post. In order to complete your MediaConnect rtp protocol CloudFormation stack, you'll need to remove the StreamId parameter which you've included as part of the AWS::MediaConnect::FlowSource resource.

Referencing the documentation link you were able to provide, I noted that the StreamId applies only to Zixi-based streams. After removing it, and including the MaxBitrate parameter, I was able to successfully create the stack.

As an example:

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Media Connect Flow Test West2a",
  "Resources": {
    "MediaConnectFlowWest2a": {
      "Type": "AWS::MediaConnect::Flow",
      "Properties": {
        "Name": "adrian-emx-rtp-flow",
        "AvailabilityZone": "us-west-2a",
        "Source": {
          "Name": "adrian-emx-rtp-flow",
          "MaxBitrate": "80000000",
          "Description": "Media Connect Flow Test - West2a",
          "Protocol": "rtp",
          "IngestPort": 5000,
          "WhitelistCidr": "<redacted>/20"
        }
      }
    }
  }
}
profile pictureAWS
Adrian
con risposta 2 anni fa
profile picture
ESPERTO
verificato 10 mesi fa
  • Brilliant - thanks so much for taking the time to answer this. Working well now!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande