
Research
/Security News
npm Malware Campaign Uses Adspect Cloaking to Deliver Malicious Redirects
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.
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
We found that awscdk-construct-mediapackage-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released 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
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads