Skip to content

Flow

Source: src/AWS/MediaConnect/Flow.ts

An AWS Elemental MediaConnect flow — a reliable live-video transport between a source and one or more outputs.

Creating a flow leaves it in STANDBY; a flow only ingests/egresses media (and bills for transport) once started with the StartFlow API. Flows bill hourly while ACTIVE, so alchemy never starts a flow implicitly.

const flow = yield* Flow("Broadcast", {
source: {
Name: "primary",
Protocol: "rtp",
WhitelistCidr: "10.24.34.0/23",
IngestPort: 5000,
},
});
const flow = yield* Flow("Distribution", {
source: {
Name: "primary",
Protocol: "rtp",
WhitelistCidr: "10.24.34.0/23",
IngestPort: 5000,
},
outputs: [
{
Name: "affiliate-east",
Protocol: "rtp",
Destination: "198.51.100.11",
Port: 5010,
},
],
});
const flow = yield* Flow("Broadcast", {
source: { Protocol: "rtp", WhitelistCidr: "10.0.0.0/8", IngestPort: 5000 },
tags: { team: "live-video" },
});