
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
aws-lambda-nodejs-webpack
Advanced tools
CDK Construct to build Node.js AWS lambdas using webpack
Table of contents:
yarn add aws-lambda-nodejs-webpack
// infra/super-app-stack.js
const sns = require("@aws-cdk/aws-sns");
const subscriptions = require("@aws-cdk/aws-sns-subscriptions");
const core = require("@aws-cdk/core");
const { NodejsFunction } = require("aws-lambda-nodejs-webpack");
module.exports = class SuperAppProductionStack extends core.Stack {
constructor(scope, id, props) {
super(scope, id, props);
const slackNotificationsLambda = new NodejsFunction(
this,
"slack-notifications-lambda",
{
entry: "events/slack-notifications.js", // required
},
);
}
};
// events/slack-notifications.js
import { WebClient as SlackWebClient } from "@slack/web-api";
export function handler(event) {
const message = event.Records[0].Sns.Message;
// do something with message
}
There's already a dedicated aws-lambda-nodejs module for CDK but I had two major issues with it:
I want to be clear: I respect a LOT the work of the CDK team, and especially @jogold, author of aws-lambda-nodejs) that helped me a lot into debugging performance issues and explaining to me how everything works.
This is a list of features I thought could be interesting to users. If you need on of them, please contribute to the project.
nativeModules
or externals
. They would have to be installed into a temp folder with npm_config_arch
and npm_config_platform
and aliased in webpack configuration/or considered as externals. Externals and nativeModules seems related options but may be completely differententry
: new NodejsFunction(this, "slack-notifications-lambda");
that would mimic https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html#nodejs-function// fork and clone
cd aws-lambda-nodejs-webpack
yarn
yarn link
yarn start
# in another terminal and project where you want to test changes
yarn link aws-lambda-nodejs-webpack
# cdk commands will now use your local aws-lambda-nodejs-webpack
FAQs
CDK Construct to build Node.js AWS lambdas using webpack
The npm package aws-lambda-nodejs-webpack receives a total of 21 weekly downloads. As such, aws-lambda-nodejs-webpack popularity was classified as not popular.
We found that aws-lambda-nodejs-webpack demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.