Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
awscdk-construct-lambda-function-for-inserting-scte
Advanced tools
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { ScteScheduler } from 'awscdk-construct-lambda-function-for-inserting-scte';
export class ExampleStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
// Create periodic SCTE-35 events
const {schedule, lambda} = new ScteScheduler(this, 'ScteScheduler', {
channelId: '12345', // MediaLive channel id
scteDurationInSeconds: 60, // Duration of SCTE:splice_insert (seconds)
intervalInMinutes: 2, // Interval of the insertion (minutes)
});
// Enable EventBridge rule
new AwsCustomResource(this, 'EnableEventBridgeRule', {
onCreate: {
service: 'EventBridge',
action: 'EnableRule',
region: cdk.Aws.REGION,
parameters: {
EventBusName: 'default',
Name: schedule.rule.ruleName,
},
physicalResourceId: PhysicalResourceId.of(`EnableRule-${Date.now().toString()}`),
},
//Will ignore any resource and use the assumedRoleArn as resource and 'sts:AssumeRole' for service:action
policy: AwsCustomResourcePolicy.fromSdkCalls({
resources: AwsCustomResourcePolicy.ANY_RESOURCE,
}),
});
// You can access Lambda function attributes via `lambda.func`
new cdk.CfnOutput(this, "LambdaFunction", {
value: lambda.func.functionArn,
exportName: cdk.Aws.STACK_NAME + "LambdaFunction",
description: "Lambda function ARN",
});
// You can access EventBridge rule attributes via `schedule.rule`
new cdk.CfnOutput(this, "EventBridgeRule", {
value: schedule.rule.ruleArn,
exportName: cdk.Aws.STACK_NAME + "EventBridgeRule",
description: "EventBridge rule ARN",
});
}
}
FAQs
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
The npm package awscdk-construct-lambda-function-for-inserting-scte receives a total of 0 weekly downloads. As such, awscdk-construct-lambda-function-for-inserting-scte popularity was classified as not popular.
We found that awscdk-construct-lambda-function-for-inserting-scte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.