Skip to content

@jaypie/constructs

AWS CDK constructs for serverless patterns.

@jaypie/constructs provides AWS CDK constructs that encode best practices for common serverless patterns.

Terminal window
npm install @jaypie/constructs

Base Lambda construct with secrets, Datadog, and environment variables:

import { JaypieLambda } from "@jaypie/constructs";
const lambda = new JaypieLambda(this, "MyLambda", {
code: lambda.Code.fromAsset("dist"),
handler: "index.handler",
});

Lambda + SQS queue pattern:

import { JaypieQueuedLambda } from "@jaypie/constructs";
const worker = new JaypieQueuedLambda(this, "Worker", {
code: lambda.Code.fromAsset("dist"),
handler: "index.handler",
batchSize: 10,
});

S3 bucket + SQS + Lambda pattern:

import { JaypieBucketQueuedLambda } from "@jaypie/constructs";
const processor = new JaypieBucketQueuedLambda(this, "Processor", {
code: lambda.Code.fromAsset("dist"),
handler: "index.handler",
});

API documentation will be generated from TypeScript definitions.