Skip to content

Instantly share code, notes, and snippets.

View borgoat's full-sized avatar
🐐

Giorgio Azzinnaro borgoat

🐐
View GitHub Profile
@borgoat
borgoat / nx-bundled-lambda-function.ts
Last active April 25, 2023 20:28
CDK Construct to find pre-bundled Lambda function - heavily inspired by CDK lambda-nodejs package
import * as lambda from 'aws-cdk-lib/aws-lambda';
import type { CallSite } from 'aws-cdk-lib/aws-lambda-nodejs/lib/util';
import { Construct } from 'constructs';
import fs from 'fs';
import path from 'path';
import process from 'process';
export interface BundledLambdaFunctionProps extends lambda.FunctionOptions {
/**
* The name of the exported handler in the entry file.

Keybase proof

I hereby claim:

To claim this, I am signing this object: