From 2631cea8061be12bd70cff42dc59040f413123af Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Thu, 25 Apr 2024 18:26:19 +0200 Subject: [PATCH] feat(cdk): add source info to lambda --- src/PackedLambdaFn.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PackedLambdaFn.ts b/src/PackedLambdaFn.ts index 76e1ada..ce42423 100644 --- a/src/PackedLambdaFn.ts +++ b/src/PackedLambdaFn.ts @@ -54,5 +54,7 @@ export class PackedLambdaFn extends Construct { handler: source.handler, code: new LambdaSource(this, source).code, }) + this.fn.node.addMetadata('packedLambda:id', source.id) + this.fn.node.addMetadata('packedLambda:hash', source.hash) } }