Stage
The Stage resource allows you to create and manage AWS IVS Stages for live streaming applications, providing a way to configure streaming settings and participant recording options.
Minimal Example
Section titled “Minimal Example”This example demonstrates creating a basic IVS Stage with a name and an optional tag.
import AWS from "alchemy/aws/control";
const basicStage = await AWS.IVS.Stage("basic-stage", { Name: "MyBasicStage", Tags: [ { Key: "Environment", Value: "Development" } ]});
Advanced Configuration
Section titled “Advanced Configuration”This example shows how to set up an IVS Stage with an auto participant recording configuration.
import AWS from "alchemy/aws/control";
const advancedStage = await AWS.IVS.Stage("advanced-stage", { Name: "MyAdvancedStage", AutoParticipantRecordingConfiguration: { DestinationConfiguration: { DestinationType: "S3", S3: { BucketName: "my-recordings-bucket", Prefix: "recordings/" } } }, Tags: [ { Key: "Project", Value: "LiveStreaming" } ]});
Adoption of Existing Resources
Section titled “Adoption of Existing Resources”This example demonstrates how to adopt an existing IVS Stage instead of failing when the resource already exists.
import AWS from "alchemy/aws/control";
const adoptedStage = await AWS.IVS.Stage("adopted-stage", { Name: "MyAdoptedStage", adopt: true});
Resource Tagging
Section titled “Resource Tagging”This example shows how to create an IVS Stage with multiple tags for better resource management.
import AWS from "alchemy/aws/control";
const taggedStage = await AWS.IVS.Stage("tagged-stage", { Name: "MyTaggedStage", Tags: [ { Key: "Team", Value: "Engineering" }, { Key: "Status", Value: "Active" }, { Key: "Region", Value: "us-west-2" } ]});