Skip to content

Commit

Permalink
feat(cdk): add source info to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 25, 2024
1 parent b480b67 commit 2631cea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PackedLambdaFn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 2631cea

Please sign in to comment.