Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
awscdk-construct-mediapackage-wrapper
Advanced tools
CDK Construct for creating wrapper Lambda@Edge functions for MediaPackage endpoints
CDK Construct for creating wrapper Lambda@Edge functions for MediaPackage endpoints
Input:
import { Stack, StackProps, CfnOutput, Fn } from 'aws-cdk-lib';
import * as lambda from 'aws-cdk-lib/lambda';
import { Construct } from 'constructs';
import { LiveChannelFromMp4 } from 'awscdk-construct-live-channel-from-mp4-file';
import { Wrapper } from 'awscdk-construct-mediapackage-wrapper';
export class ExampleStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
// Create a live channel (MediaLive + MediaPackage)
const {empv1: emp} = new LiveChannelFromMp4(this, 'LiveChannelFromMp4', {
sourceUrl: 's3ssl://example_bucket/test.mp4',
timecodeBurninPrefix: 'Ch1',
autoStart: true,
mediaPackageVersionSpec: 'V1_ONLY',
});
const hlsArr = Fn.split('/', emp.endpoints.hls.attrUrl);
const dashArr = Fn.split('/', emp.endpoints.dash.attrUrl);
// Create wrapper L@E functions
const wrapper = new Wrapper(stack, 'Wrapper', {
domainName: Fn.select(2, hlsArr),
hlsWrapperFunction: lambda.Code.fromAsset('./func/hls/')),
dashWrapperFunction: lambda.Code.fromAsset('./func/dash/')),
});
// Print MediaPackage endpoint URL (HLS)
new CfnOutput(this, "WrappedHLSEndpointURL", {
value: `https://${wrapper.cf.distribution.distributionDomainName}/out/v1/${Fn.select(5, hlsArr)}/${Fn.select(6, hlsArr)}`,
exportName: "WrappedHLSEndpointURL",
description: "HLS endpoint URL",
});
// Print MediaPackage endpoint URL (DASH)
new CfnOutput(this, "WrappedDASHEndpointURL", {
value: `https://${wrapper.cf.distribution.distributionDomainName}/out/v1/${Fn.select(5, dashArr)}/${Fn.select(6, dashArr)}`,
exportName: "WrappedDASHEndpointURL",
description: "DASH endpoint URL",
});
}
}
FAQs
CDK Construct for creating wrapper Lambda@Edge functions for MediaPackage endpoints
The npm package awscdk-construct-mediapackage-wrapper receives a total of 0 weekly downloads. As such, awscdk-construct-mediapackage-wrapper popularity was classified as not popular.
We found that awscdk-construct-mediapackage-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.