
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
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 1 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.