Skip to content
GitHubXDiscordRSS

SdiSource

Learn how to create, update, and manage AWS MediaLive SdiSources using Alchemy Cloud Control.

The SdiSource resource allows you to manage AWS MediaLive SdiSources for your media workflows. SDI (Serial Digital Interface) sources are used to ingest high-quality video feeds into AWS MediaLive.

Create a basic SdiSource with required properties and one optional property.

import AWS from "alchemy/aws/control";
const sdiSource = await AWS.MediaLive.SdiSource("mySdiSource", {
Name: "primary-sdi-source",
Type: "SDI",
Mode: "AUTO" // Optional: Mode can be AUTO or MANUAL
});

Configure an SdiSource with additional settings such as tags and adoption options.

const advancedSdiSource = await AWS.MediaLive.SdiSource("advancedSdiSource", {
Name: "advanced-sdi-source",
Type: "SDI",
Mode: "MANUAL", // Optional: Set to MANUAL for specific configurations
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Project", Value: "LiveStreaming" }
],
adopt: true // Optional: If true, adopts existing resource instead of failing
});

Demonstrate how to create multiple SdiSources for redundancy.

const secondarySdiSource = await AWS.MediaLive.SdiSource("secondarySdiSource", {
Name: "secondary-sdi-source",
Type: "SDI",
Mode: "AUTO"
});

Configure an SdiSource to handle multiple video feeds by creating a list of sources.

const multiFeedSdiSource = await AWS.MediaLive.SdiSource("multiFeedSdiSource", {
Name: "multi-feed-sdi-source",
Type: "SDI",
Mode: "AUTO",
Tags: [
{ Key: "Environment", Value: "Staging" },
{ Key: "UseCase", Value: "Testing" }
],
adopt: false // Default is false: will fail if the resource already exists
});