Skip to content
GitHubXDiscordRSS

Channel

Learn how to create, update, and manage AWS IVS Channels using Alchemy Cloud Control.

The Channel resource lets you manage AWS IVS Channels for live streaming. This resource provides a way to configure channels for video ingestion and streaming.

Create a basic IVS channel with default settings, specifying only the required properties:

import AWS from "alchemy/aws/control";
const basicChannel = await AWS.IVS.Channel("basicChannel", {
Type: "BASIC",
Name: "MyFirstChannel",
RecordingConfigurationArn: "arn:aws:ivs:us-west-2:123456789012:recording-configuration/recording-config-id"
});

Configure a channel with advanced options such as multi-track input configuration and latency mode:

import AWS from "alchemy/aws/control";
const advancedChannel = await AWS.IVS.Channel("advancedChannel", {
Type: "BASIC",
Name: "MyAdvancedChannel",
RecordingConfigurationArn: "arn:aws:ivs:us-west-2:123456789012:recording-configuration/recording-config-id",
Authorized: true,
LatencyMode: "LOW",
MultitrackInputConfiguration: {
AudioTracks: [
{
LanguageCode: "en",
TrackName: "English"
},
{
LanguageCode: "es",
TrackName: "Spanish"
}
]
},
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Application", Value: "LiveStreamingApp" }
]
});

Set up a channel that allows insecure ingest, which can be useful for development purposes:

import AWS from "alchemy/aws/control";
const insecureIngestChannel = await AWS.IVS.Channel("insecureIngestChannel", {
Type: "BASIC",
Name: "InsecureChannel",
InsecureIngest: true,
RecordingConfigurationArn: "arn:aws:ivs:us-west-2:123456789012:recording-configuration/recording-config-id"
});

Create a channel with a specific preset and container format suited for your streaming needs:

import AWS from "alchemy/aws/control";
const customFormatChannel = await AWS.IVS.Channel("customFormatChannel", {
Type: "BASIC",
Name: "CustomFormatChannel",
Preset: "HLS",
ContainerFormat: "MPEG-TS",
RecordingConfigurationArn: "arn:aws:ivs:us-west-2:123456789012:recording-configuration/recording-config-id"
});