Skip to content

InputSecurityGroup

Source: src/AWS/MediaLive/InputSecurityGroup.ts

An AWS Elemental MediaLive input security group — an IP allowlist that gates which source networks may push content to attached PUSH inputs (RTMP_PUSH, RTP_PUSH, UDP_PUSH).

Allow a single network

const isg = yield* MediaLive.InputSecurityGroup("Allowlist", {
whitelistRules: ["10.0.0.0/16"],
});

Open to the world (test-only)

const isg = yield* MediaLive.InputSecurityGroup("Open", {
whitelistRules: ["0.0.0.0/0"],
tags: { team: "media" },
});
const input = yield* MediaLive.Input("Stream", {
type: "RTMP_PUSH",
inputSecurityGroups: [isg.inputSecurityGroupId],
destinations: [{ StreamName: "live/stream" }],
});