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-fetch-job
Advanced tools
AWS CDK Construct for scheduling a cron job that periodically accesses a MediaTailor endpoint
CDK Construct for scheduling a cron job that periodically accesses a MediaTialor endpoint
Input:
Output:
Below is an example of deploying a cron job that runs at 11:59 every Saturday. Once the job gets started, it fetches the manifest every 2 seconds until it's repeated 30 times.
import { Stack, StackProps, CfnOutput } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { FetchJob } from 'awscdk-construct-fetch-job';
export class ExampleStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const job = new FetchJob(this, 'FetchSchedule', {
emailAddr: 'Your email address',
sessionInitializationUrl: 'MediaTailor session initialization URL',
startTime: { hour: '11', minute: '59', weekDay: 'SAT' }, // Cron pattern
intervalInSeconds: 2, // Fetch interval
fetchCount: 30, // Fetch count per cron job
});
// Print the ARN of the EventBridge rule
new CfnOutput(this, "EventBridgeRuleARN", {
value: job.rule.ruleArn,
exportName: "EventBridgeRuleARN",
description: "ARN of EventBridge Rule - fetch",
});
}
}
FAQs
AWS CDK Construct for scheduling a cron job that periodically accesses a MediaTailor endpoint
We found that awscdk-construct-fetch-job 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.